Skip to content

Commit e2159f8

Browse files
committed
Add search route to person blocks resource
1 parent 6235938 commit e2159f8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

config/routes.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,11 @@
8484
end
8585
end
8686

87-
resources :person_blocks, path: :blocks, only: %i[index new create destroy]
87+
resources :person_blocks, path: :blocks, only: %i[index new create destroy] do
88+
collection do
89+
get :search
90+
end
91+
end
8892
resources :reports, only: [:create]
8993

9094
namespace :joatu, path: 'exchange' do

0 commit comments

Comments
 (0)