Skip to content

Commit

Permalink
Allowed to have dot in contact routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei Tsoganov authored and Sergei Tsoganov committed Feb 6, 2023
1 parent 162647a commit c67430d
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 c67430d

Please sign in to comment.