Skip to content

Commit

Permalink
Merge pull request #2929 from ccarruitero/api_cleanup
Browse files Browse the repository at this point in the history
remove unused routes and actions from return authorizations
  • Loading branch information
kennyadsl authored Nov 9, 2018
2 parents 55ab4ea + fd595b1 commit 4c4c168
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 4c4c168

Please sign in to comment.