Skip to content

Commit

Permalink
Merge pull request #2649 from gevann/remove-unused-api-checkout-routes
Browse files Browse the repository at this point in the history
Clean CheckoutsController routes
  • Loading branch information
kennyadsl authored Mar 30, 2018
2 parents a779d17 + 5dc5ec2 commit 0666737
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions api/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
end

concern :order_routes do
member do
put :cancel
put :empty
put :apply_coupon_code
end

resources :line_items
resources :payments do
member do
Expand Down Expand Up @@ -69,7 +63,13 @@
get '/orders/mine', to: 'orders#mine', as: 'my_orders'
get "/orders/current", to: "orders#current", as: "current_order"

resources :orders, concerns: :order_routes
resources :orders, concerns: :order_routes do
member do
put :cancel
put :empty
put :apply_coupon_code
end
end

resources :zones
resources :countries, only: [:index, :show] do
Expand Down

0 comments on commit 0666737

Please sign in to comment.