lib/carte/server.rb in carte-server-0.0.3 vs lib/carte/server.rb in carte-server-0.0.4
- old
+ new
@@ -43,10 +43,10 @@
get '/' do
haml :index
end
get '/app.js' do
- File.read(settings.script_path)
+ send_file settings.script_path
end
namespace '/api' do
get '/cards.xml' do
@cards = search(params)