From c67430d652447c96a8335912cd49eac0b3526dab Mon Sep 17 00:00:00 2001 From: Sergei Tsoganov Date: Mon, 6 Feb 2023 16:12:57 +0200 Subject: [PATCH] Allowed to have dot in contact routes --- config/routes.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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