Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

Commit

Permalink
Add config/routes.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
jhawthorn committed Nov 21, 2017
1 parent ab99175 commit 87328f9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Spree::Core::Engine.routes.draw do
namespace :admin do
resources :stock_transfers, except: [:destroy] do
member do
get :receive
put :finalize
put :close
get :tracking_info
put :ship
end
end
end

namespace :api, defaults: { format: 'json' } do
resources :stock_transfers, only: [] do
member do
post :receive
end
resources :transfer_items, only: [:create, :update, :destroy]
end
end
end

0 comments on commit 87328f9

Please sign in to comment.