Skip to content

Commit

Permalink
the route only for update
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Jun 14, 2024
1 parent 3bd9d25 commit acb561c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
Rails.application.routes.draw do

namespace :sync, defaults: { business: 'sync' } do
resources :items
resources :items, only: [:index, :create] do
collection do
match '/' => :update, via: [:put, :patch]
end
end

namespace :admin, defaults: { namespace: 'admin' } do
root 'home#index'
Expand Down

0 comments on commit acb561c

Please sign in to comment.