1
0
This repository has been archived on 2023-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
body_tracking/config/routes.rb
cryptogopher 745d6de42b Added Quantity ordering
Some table columns made unwrappable
2019-10-26 21:00:37 +02:00

21 lines
647 B
Ruby

# Plugin's routes
# See: http://guides.rubyonrails.org/routing.html
resources :projects do
shallow do
resources :body_trackers, :only => [:index] do
post 'defaults', on: :collection
end
resources :ingredients, :only => [:index, :create, :destroy] do
post 'import', on: :collection
get 'nutrients', on: :collection
end
resources :sources, :only => [:index, :create, :destroy]
resources :quantities, :only => [:index, :create, :destroy] do
post 'toggle', on: :member
post 'up', 'down', 'left', 'right', on: :member
end
resources :units, :only => [:index, :create, :destroy]
end
end