2016-01-12 18:43:00 -06:00
|
|
|
Rails.application.routes.draw do
|
|
|
|
|
|
|
|
resources :recipes
|
2016-01-14 18:56:45 -06:00
|
|
|
|
|
|
|
resources :ingredients, except: [:show] do
|
2016-01-14 15:22:15 -06:00
|
|
|
collection do
|
|
|
|
constraints format: 'json' do
|
|
|
|
get :search
|
|
|
|
get :prefetch
|
2016-01-18 12:58:54 -06:00
|
|
|
get :convert
|
2016-01-14 15:22:15 -06:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2016-01-12 18:43:00 -06:00
|
|
|
|
|
|
|
root 'recipes#index'
|
|
|
|
|
|
|
|
|
|
|
|
end
|