Skip to content

Commit

Permalink
Add routes for variants
Browse files Browse the repository at this point in the history
  • Loading branch information
virajrch committed Mar 19, 2024
1 parent e8c6f87 commit 65266d4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
end
end
end
resources :variants, only: [] do
resources :relations do
collection do
post :update_positions
end
end
end
end

namespace :api, defaults: { format: 'json' } do
Expand All @@ -20,5 +27,12 @@
end
end
end
resources :variants, only: [] do
resources :relations do
collection do
post :update_positions
end
end
end
end
end

0 comments on commit 65266d4

Please sign in to comment.