tiss2go/config/routes.rb
Pfingstfrosch ae6a202e59 refactored routes file:
now using namespaces to make the file more readable and better structured
2020-05-12 19:16:18 +02:00

40 lines
750 B
Ruby

Rails.application.routes.draw do
devise_for :users, path_names: {sign_in: 'log_in', sign_out: 'log out'}
namespace :login do
get 'index'
end
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 'login#index'
end