From c8c5f3d60cc2e70b5f52145de3a6008b3fe575b1 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Wed, 29 Apr 2015 09:42:36 -0400 Subject: [PATCH] Disable raid saving --- app.rb | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/app.rb b/app.rb index bb51501..9d905e5 100644 --- a/app.rb +++ b/app.rb @@ -18,17 +18,19 @@ get '/' do end post '/' do - response['Access-Control-Allow-Origin'] = 'http://trugul.com' + #response['Access-Control-Allow-Origin'] = 'http://trugul.com' - @raid = Raid.new(params[:raid]) + #@raid = Raid.new(params[:raid]) - if @raid.save - content_type :json - { :message => 'Raid saved' }.to_json - else - content_type :json - { :message => 'Raid failed to save' }.to_json - end + #if @raid.save + # content_type :json + # { :message => 'Raid saved' }.to_json + #else + # content_type :json + # { :message => 'Raid failed to save' }.to_json + #end + content_type :json + { :message => 'Raid saving no longer available' }.to_json end get '/bossfight' do