mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 05:26:17 +02:00
Merge pull request #2542 from internetee/2539-fix-contact-object-issue
Allowed to have dot in contact codes
This commit is contained in:
commit
22912d2cca
1 changed files with 6 additions and 4 deletions
|
@ -68,10 +68,12 @@ Rails.application.routes.draw do
|
||||||
|
|
||||||
namespace :repp do
|
namespace :repp do
|
||||||
namespace :v1 do
|
namespace :v1 do
|
||||||
resources :contacts do
|
constraints id: %r{[^\/]+} do
|
||||||
collection do
|
resources :contacts do
|
||||||
get 'check/:id', to: 'contacts#check'
|
collection do
|
||||||
get 'search(/:id)', to: 'contacts#search'
|
get 'check/:id', to: 'contacts#check'
|
||||||
|
get 'search(/:id)', to: 'contacts#search'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue