mirror of
https://github.com/internetee/registry.git
synced 2025-07-31 06:56:23 +02:00
Allowed to have dot in contact routes
This commit is contained in:
parent
162647acba
commit
c67430d652
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue