Skip to content

Commit

Permalink
remove unused routes and actions for return authorizations
Browse files Browse the repository at this point in the history
  • Loading branch information
ccarruitero committed Oct 30, 2018
1 parent 622aa25 commit fd595b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions api/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@

resources :return_authorizations do
member do
put :add
put :cancel
put :receive
end
end
end
Expand Down

0 comments on commit fd595b1

Please sign in to comment.