specify username
This commit is contained in:
parent
6f822f5706
commit
1683f24c55
1 changed files with 3 additions and 2 deletions
5
app.rb
5
app.rb
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue