Created
November 7, 2014 17:33
-
-
Save mjy/9f49c6b108b1c7282dcd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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