tiss2go/config/routes.rb

28 lines
707 B
Ruby

Rails.application.routes.draw do
devise_for :users, path_names: {sign_in: 'log_in', sign_out: 'log out'}
get 'login/index'
get 'tiss_crawler/search'
get 'people_crawler/show_basic'
get 'people_crawler/show_detail'
post 'people_crawler/show_detail'
get 'people_crawler/add_to_fav'
post 'people_crawler/add_to_fav'
get 'courses_crawler/show_basic'
get 'courses_crawler/show_detail'
post 'courses_crawler/show_detail'
get 'courses_crawler/add_to_fav'
post 'courses_crawler/add_to_fav'
namespace :favorites do
get 'favorite_person/index'
end
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
root 'login#index'
end