config/routes.rb in solidus_api-2.5.2 vs config/routes.rb in solidus_api-2.6.0.rc1

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + Spree::Core::Engine.routes.draw do namespace :admin do resources :users do member do put :generate_api_key @@ -16,16 +18,10 @@ resources :variants resources :product_properties end concern :order_routes do - member do - put :cancel - put :empty - put :apply_coupon_code - end - resources :line_items resources :payments do member do put :authorize put :capture @@ -65,10 +61,16 @@ resources :option_values, only: :index 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 resources :states, only: [:index, :show] end