diff --git a/api/app/controllers/spree/api/return_authorizations_controller.rb b/api/app/controllers/spree/api/return_authorizations_controller.rb index 18ca63dc90..9aeacad5b2 100644 --- a/api/app/controllers/spree/api/return_authorizations_controller.rb +++ b/api/app/controllers/spree/api/return_authorizations_controller.rb @@ -4,7 +4,7 @@ module Spree module Api class ReturnAuthorizationsController < Spree::Api::BaseController before_action :load_order - around_action :lock_order, only: [:create, :update, :destroy, :add, :receive, :cancel] + around_action :lock_order, only: [:create, :update, :destroy, :cancel] rescue_from Spree::Order::InsufficientStock, with: :insufficient_stock_error diff --git a/api/config/routes.rb b/api/config/routes.rb index 1b4b3d37aa..ea13cfefdd 100644 --- a/api/config/routes.rb +++ b/api/config/routes.rb @@ -35,9 +35,7 @@ resources :return_authorizations do member do - put :add put :cancel - put :receive end end end