refactored crawler controllers and bundled them in crawlers namespace

This commit is contained in:
Pfingstfrosch
2020-05-12 19:49:18 +02:00
parent d7907a3a0c
commit d34a3d583c
13 changed files with 34 additions and 32 deletions
+19 -17
View File
@@ -2,24 +2,26 @@ 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 :crawlers do
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 :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'
namespace :courses_crawler do
get 'show_basic'
get 'show_detail'
post 'show_detail'
get 'add_to_fav'
post 'add_to_fav'
end
end
namespace :favorites do
@@ -31,5 +33,5 @@ Rails.application.routes.draw do
end
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
root 'tiss_crawler#search'
root 'crawlers/tiss_crawler#search'
end