Skip to content

Commit

Permalink
Merge pull request #2542 from internetee/2539-fix-contact-object-issue
Browse files Browse the repository at this point in the history
Allowed to have dot in contact codes
  • Loading branch information
vohmar authored Feb 7, 2023
2 parents 162647a + c67430d commit 22912d2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 22912d2

Please sign in to comment.