Commit a1a3743c by ivan Lan

Improve routes generator

parent b3fde4f2
...@@ -91,6 +91,7 @@ module Shotengai ...@@ -91,6 +91,7 @@ module Shotengai
end end
collection do collection do
post :batch_event post :batch_event
get :recycle_bin
end end
resources :#{product}_series resources :#{product}_series
end end
...@@ -102,6 +103,10 @@ module Shotengai ...@@ -102,6 +103,10 @@ module Shotengai
end end
resources :#{product}_series, shallow: true do #, excpet: :index resources :#{product}_series, shallow: true do #, excpet: :index
resources :#{product}_snapshots, only: [:index, :show, :update] resources :#{product}_snapshots, only: [:index, :show, :update]
collection do
post :batch_event
get :recycle_bin
end
end end
end end
" "
...@@ -112,7 +117,7 @@ module Shotengai ...@@ -112,7 +117,7 @@ module Shotengai
" "
namespace :#{@namespace} do namespace :#{@namespace} do
resources :#{product.pluralize}, shallow: true, only: [:index, :show] do resources :#{product.pluralize}, shallow: true, only: [:index, :show] do
resources :product_series, only: [:index, :show] resources :#{product}_series, only: [:index, :show]
end end
resources :#{product}_snapshots, only: [:index, :show] resources :#{product}_snapshots, only: [:index, :show]
# order_cart # order_cart
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment