From a7b0d54c5313d2a528155cda38287559c10b310b Mon Sep 17 00:00:00 2001 From: Alan Sebastian Date: Tue, 16 Apr 2013 13:54:23 -0700 Subject: [PATCH] Support client names with hyphens and slashes --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 2b81c20..c9bd459 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -11,7 +11,7 @@ scope 'events' do match 'events_table' => 'events#events_table', :via => :get match 'modal_data' => 'events#modal_data', :via => :get - scope '/:client', :constraints => { :client => /[\w.]+/ } do + scope '/:client', :constraints => { :client => /[\w.\-\/]+/ } do match '/silence' => 'events#silence_client', :via => :post match '/unsilence' => 'events#unsilence_client', :via => :post scope '/:check' do