From 1683f24c556c47b2189b88c82f0d348b31582d0d Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 28 Apr 2015 10:15:17 -0400 Subject: [PATCH] specify username --- app.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.rb b/app.rb index 2b0108c..25fe181 100644 --- a/app.rb +++ b/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