lib/routes/main.rb in gaptool-server-0.4.7 vs lib/routes/main.rb in gaptool-server-0.4.8

- old
+ new

@@ -1,13 +1,9 @@ # encoding: utf-8 class GaptoolServer < Sinatra::Application - error do - {error: "Sorry there was a nasty error - #{env['sinatra.error']}" }.to_json - end - get '/' do - "You must be lost. Read the instructions." + raise "You must be lost. Read the instructions." end post '/redishash' do data = JSON.parse request.body.read redishash(data).to_json