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
2019-10-26 01:03:06 +02:00

20 lines
593 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
end
resources :units, :only => [:index, :create, :destroy]
end
end