Skip to content

Instantly share code, notes, and snippets.

@victorximenis
Created February 29, 2016 18:51
Show Gist options
  • Save victorximenis/e9d083d1ee5a2fbb0e34 to your computer and use it in GitHub Desktop.
Save victorximenis/e9d083d1ee5a2fbb0e34 to your computer and use it in GitHub Desktop.
Rails.application.routes.draw do
devise_for :users
root to: 'home#index'
resources :artists
resources :modalities
resources :institutions
namespace :api do
scope :v1 do
mount_devise_token_auth_for "User", at: 'auth'
end
end
namespace :api, defaults: { format: :json } do
scope module: :v1, path: :v1 do
resources :artists, only: [:create, :index]
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment