Skip to content

Instantly share code, notes, and snippets.

@mrmans0n
Last active December 14, 2015 21:59
Show Gist options
  • Select an option

  • Save mrmans0n/5155530 to your computer and use it in GitHub Desktop.

Select an option

Save mrmans0n/5155530 to your computer and use it in GitHub Desktop.
API versioning route example
DoroboWeb::Application.routes.draw do
use_doorkeeper
devise_for :users
# API definitions
namespace :api do
namespace :v1 do
resources :users, only: [ :new, :show, :edit, :destroy ]
end
end
get "home/index"
root :to => 'home#index'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment