diff --git a/config/routes.rb b/config/routes.rb index d8d52f322c..619c359a33 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -68,10 +68,12 @@ namespace :repp do namespace :v1 do - resources :contacts do - collection do - get 'check/:id', to: 'contacts#check' - get 'search(/:id)', to: 'contacts#search' + constraints id: %r{[^\/]+} do + resources :contacts do + collection do + get 'check/:id', to: 'contacts#check' + get 'search(/:id)', to: 'contacts#search' + end end end