Allowed to have dot in contact routes

This commit is contained in:
Sergei Tsoganov 2023-02-06 16:12:57 +02:00
parent 162647acba
commit c67430d652

View file

@ -68,10 +68,12 @@ Rails.application.routes.draw do
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