Skip to content

Instantly share code, notes, and snippets.

@Circuit8
Created July 1, 2016 12:17
Show Gist options
  • Save Circuit8/649c6668f40e8d2b15e74b69a87e924f to your computer and use it in GitHub Desktop.
Save Circuit8/649c6668f40e8d2b15e74b69a87e924f to your computer and use it in GitHub Desktop.
api GET /api/products/:id/fabrics(.:format) api/fabrics#index {:format=>:json}
namespace :api do
get 'products/:custom_id/fabrics', to: 'fabrics#index', defaults: { format: :json }
end
@alfie-max
Copy link

get 'products/:custom_id/fabrics', to: 'fabrics#index', defaults: { format: :json }, as: 'api_product_fabrics'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment