mirror of
https://github.com/danog/yawarehouse.git
synced 2024-12-02 09:27:53 +01:00
12 lines
442 B
Ruby
12 lines
442 B
Ruby
Rails.application.routes.draw do
|
|
root "sections#index"
|
|
|
|
resources :sections do
|
|
resources :products
|
|
end
|
|
|
|
patch "/sections/:section_id/products/:id/increase", to: "products#increase", as: "section_product_increase"
|
|
patch "/sections/:section_id/products/:id/decrease", to: "products#decrease", as: "section_product_decrease"
|
|
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
|
|
end
|