2015-09-29 19:02:43 -04:00
|
|
|
Rails.application.routes.draw do
|
2015-09-29 21:21:05 -04:00
|
|
|
get 'auth/:provider/callback', to: 'sessions#create'
|
|
|
|
get 'auth/failure', to: 'sessions#failure'
|
|
|
|
delete 'logout', to: 'sessions#destroy', as: 'logout'
|
2015-09-29 19:02:43 -04:00
|
|
|
|
2015-10-09 08:17:29 -04:00
|
|
|
get '/welcome', to: 'welcome#index'
|
2015-09-29 19:02:43 -04:00
|
|
|
|
2015-09-29 21:21:05 -04:00
|
|
|
root to: 'welcome#index'
|
2015-10-08 14:20:56 -04:00
|
|
|
|
2015-10-09 08:17:29 -04:00
|
|
|
namespace :admin do
|
|
|
|
root to: 'dashboard#index'
|
|
|
|
|
|
|
|
get '/dashboard', to: 'dashboard#index'
|
|
|
|
|
|
|
|
resources :awaken_types
|
|
|
|
resources :cards
|
|
|
|
resources :characters
|
|
|
|
resources :leader_skills
|
|
|
|
resources :links
|
|
|
|
resources :passive_skills
|
|
|
|
resources :rarities
|
|
|
|
resources :super_attacks
|
|
|
|
resources :types
|
|
|
|
resources :users, except: [:new, :create]
|
|
|
|
end
|
|
|
|
|
2015-10-08 14:20:56 -04:00
|
|
|
namespace :api do
|
|
|
|
namespace :v1 do
|
|
|
|
resources :cards, only: [:index, :show]
|
|
|
|
resources :links, only: [:index, :show]
|
|
|
|
end
|
|
|
|
end
|
2015-09-29 19:02:43 -04:00
|
|
|
end
|