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
|
||||||
end
|
end
|
||||||
|
|
||||||
get '/bossfight' do
|
get '/bossfight/:username' do
|
||||||
user_raids = Raid.for_user('mafiaman')
|
username = params['username'] ? params['username'] : 'mafiaman'
|
||||||
|
user_raids = Raid.for_user(username)
|
||||||
@first_negative = user_raids.first_negative
|
@first_negative = user_raids.first_negative
|
||||||
|
|
||||||
erb :bossfight
|
erb :bossfight
|
||||||
|
|
Loading…
Reference in a new issue