lib/template/config.ru in browser_app_base-0.0.3 vs lib/template/config.ru in browser_app_base-0.0.4
- old
+ new
@@ -22,10 +22,16 @@
content_type "text/javascript", :charset => "utf-8"
puts "js/#{params[:name]}.js"
File.read "js/#{params[:name]}.js"
end
+get "/config/*.*" do |file, ext|
+ content_type "text/json", :charset => "utf-8"
+ puts "#{file}.#{ext}"
+ File.read "config/#{file}.#{ext}"
+end
+
map "/search" do
run Search
end
map "/wsserver" do
@@ -44,8 +50,8 @@
# Thread.start {
# }
end
-#\ --port 62857
+#\ --port 64141
run Sinatra::Application