Disable raid saving
This commit is contained in:
parent
c9e113e312
commit
c8c5f3d60c
1 changed files with 11 additions and 9 deletions
18
app.rb
18
app.rb
|
@ -18,17 +18,19 @@ get '/' do
|
||||||
end
|
end
|
||||||
|
|
||||||
post '/' do
|
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
|
#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
|
content_type :json
|
||||||
{ :message => 'Raid saved' }.to_json
|
{ :message => 'Raid saving no longer available' }.to_json
|
||||||
else
|
|
||||||
content_type :json
|
|
||||||
{ :message => 'Raid failed to save' }.to_json
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
get '/bossfight' do
|
get '/bossfight' do
|
||||||
|
|
Loading…
Reference in a new issue