diff options
-rw-r--r-- | config/routes.rb | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 707d0fc..86bbca6 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -206,13 +206,24 @@ Gemeinschaft42c::Application.routes.draw do # Unified path for Snom phones. # Enter e.g. "http://192.168.1.105:3000/settings" # as the Setting URL (Advanced -> Update). - match 'snom-:provisioning_key' => 'config_snom#show', + match 'snom-:provisioning_key' => 'config_snom#snom_phone', + :via => [:get], + :format => 'xml' + match 'snom-:provisioning_key-:mac_address' => 'config_snom#snom_phone', + :constraints => { :mac_address => /000413[0-9A-F]{6}/i }, :via => [:get], :format => 'xml' match 'settings-:mac_address' => 'config_snom#show', :constraints => { :mac_address => /000413[0-9A-F]{6}/i }, :via => [:get], :format => 'xml' + match 'snom_vision-:provisioning_key' => 'config_snom#snom_vision', + :via => [:get], + :format => 'xml' + match 'snom_vision-:provisioning_key-:mac_address' => 'config_snom#snom_vision', + :constraints => { :mac_address => /000413[0-9A-F]{6}/i }, + :via => [:get], + :format => 'xml' match "/DeploymentService/LoginService" => 'config_siemens#index', :via => [:post], :format => 'xml' @@ -327,6 +338,7 @@ Gemeinschaft42c::Application.routes.draw do resources :phones, :only => [] do resources :phone_sip_accounts + resources :extension_modules end # Display all phone book entries that the current user can access: |