From 7dfc2407b9d05126c3ed754cd032d1565f7ac02b Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Mon, 3 Jun 2013 13:29:49 -0700 Subject: [PATCH] can have trailing slash --- app.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.rb b/app.rb index c032a1d8..1e8ac06f 100644 --- a/app.rb +++ b/app.rb @@ -26,7 +26,7 @@ get %r{.+} do send_file path end -get '/' do +get '/?' do dashboard_if_signed_in slim :index end @@ -92,7 +92,7 @@ get '/signout' do end # Helper routes to get webalizer stats working, not used by anything important -get '/sites/:name' do +get '/sites/:name/?' do sites_name_redirect end