Skip to content

Instantly share code, notes, and snippets.

@mjy
Created November 7, 2014 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjy/9f49c6b108b1c7282dcd to your computer and use it in GitHub Desktop.
Save mjy/9f49c6b108b1c7282dcd to your computer and use it in GitHub Desktop.
concern :data_routes do |options|
collection do
get 'download'
get 'list'
post 'batch_preview'
get 'autocomplete'
end
member do
post 'search'
end
end
resources :otus do
concerns [:data_routes]
end
# otus/search (badly formed id) raises
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment