tiss2go/config/routes.rb
Pfingstfrosch 415ed22f6e remove HOME Page, because redundant
show search page as default
2020-05-12 19:27:43 +02:00

36 lines
713 B
Ruby

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