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

26 lines
618 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-06 13:55:12 -04:00
resources :awaken_types
resources :cards
resources :characters
resources :leader_skills
2015-10-01 11:56:40 -04:00
resources :links
2015-10-06 13:55:12 -04:00
resources :passive_skills
resources :rarities
resources :super_attacks
resources :types
2015-09-29 21:21:05 -04:00
resources :welcome, only: [:index]
2015-09-29 19:02:43 -04:00
2015-09-29 21:21:05 -04:00
root to: 'welcome#index'
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