specify username

This commit is contained in:
Andrew Tomaka 2015-04-28 10:15:17 -04:00
parent 6f822f5706
commit 1683f24c55

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