Last active
July 15, 2016 16:45
-
-
Save orangeeli/304dcb4e0d3f2e09c7218b0a6ceb6e7b to your computer and use it in GitHub Desktop.
A routes API example
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
scope '/api', defaults: {format: 'json'} do | |
scope '/v1' do | |
scope '/gorilla' do | |
get '/' => 'api/v1/gorilla#index' | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment