1
0
Fork 0
dokkan-data-rails/config/routes.rb

38 lines
960 B
Ruby
Raw Normal View History

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-09 08:17:29 -04:00
namespace :admin do
root to: 'dashboard#index'
get '/dashboard', to: 'dashboard#index'
2015-10-14 09:21:16 -04:00
post '/versions/revert', to: 'versions#revert', as: 'revert_version'
2015-10-09 08:17:29 -04:00
resources :awaken_types
resources :cards
resources :characters
2015-10-14 11:24:15 -04:00
resources :evidences, except: [:show, :edit, :update]
2015-10-09 08:17:29 -04:00
resources :leader_skills
resources :links
resources :passive_skills
resources :rarities
resources :super_attacks
resources :types
resources :users, except: [:new, :create]
resources :versions, only: [:show]
2015-10-09 08:17:29 -04:00
end
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