Last active
August 29, 2015 14:00
-
-
Save forrestgrant/704b380e6ef0691196c4 to your computer and use it in GitHub Desktop.
API Routing
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
namespace :api do | |
namespace :v1 do | |
resources :foos | |
resources :bars | |
end | |
namespace :v2 do | |
resources :foos | |
# :bars should fall back to v1 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment