Skip to content

Instantly share code, notes, and snippets.

@GiancarlosIO
Last active July 28, 2016 03:59
Show Gist options
  • Save GiancarlosIO/00833576d43a7586c85fcf3c1c52945f to your computer and use it in GitHub Desktop.
Save GiancarlosIO/00833576d43a7586c85fcf3c1c52945f to your computer and use it in GitHub Desktop.
# my_api/config/routes.rb
Rails.application.routes.draw do
namespace :api, defaults: { format: "json" } do
namespace :v1 do
resources :users
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment