Created
February 29, 2016 18:51
-
-
Save victorximenis/e9d083d1ee5a2fbb0e34 to your computer and use it in GitHub Desktop.
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
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