1
0
Fork 0

specify username

This commit is contained in:
Andrew Tomaka 2015-04-28 10:15:17 -04:00
parent 6f822f5706
commit 1683f24c55
1 changed files with 3 additions and 2 deletions

5
app.rb
View File

@ -31,8 +31,9 @@ post '/' do
end
end
get '/bossfight' do
user_raids = Raid.for_user('mafiaman')
get '/bossfight/:username' do
username = params['username'] ? params['username'] : 'mafiaman'
user_raids = Raid.for_user(username)
@first_negative = user_raids.first_negative
erb :bossfight