diff --git a/app/controllers/crawlers/courses_crawler_controller.rb b/app/controllers/crawlers/courses_crawler_controller.rb index dc41553..b6c7aeb 100644 --- a/app/controllers/crawlers/courses_crawler_controller.rb +++ b/app/controllers/crawlers/courses_crawler_controller.rb @@ -82,4 +82,7 @@ class Crawlers::CoursesCrawlerController < Crawlers::TissCrawlerController redirect_back(fallback_location: search) end + def add_annotation + end + end diff --git a/app/controllers/crawlers/projects_crawler_controller.rb b/app/controllers/crawlers/projects_crawler_controller.rb index 605efe2..aa087fb 100644 --- a/app/controllers/crawlers/projects_crawler_controller.rb +++ b/app/controllers/crawlers/projects_crawler_controller.rb @@ -46,4 +46,7 @@ class Crawlers::ProjectsCrawlerController < Crawlers::TissCrawlerController end redirect_back(fallback_location: search) end + + def add_annotation + end end diff --git a/app/controllers/crawlers/theses_crawler_controller.rb b/app/controllers/crawlers/theses_crawler_controller.rb index 711b1a0..3bd5ce8 100644 --- a/app/controllers/crawlers/theses_crawler_controller.rb +++ b/app/controllers/crawlers/theses_crawler_controller.rb @@ -46,4 +46,7 @@ class Crawlers::ThesesCrawlerController < Crawlers::TissCrawlerController end redirect_back(fallback_location: search) end + + def add_annotation + end end diff --git a/app/controllers/crawlers/tiss_crawler_controller.rb b/app/controllers/crawlers/tiss_crawler_controller.rb index aae78e3..dcf54f4 100644 --- a/app/controllers/crawlers/tiss_crawler_controller.rb +++ b/app/controllers/crawlers/tiss_crawler_controller.rb @@ -34,4 +34,7 @@ class Crawlers::TissCrawlerController < ApplicationController def add_to_fav end + def add_annotation + end + end diff --git a/config/routes.rb b/config/routes.rb index 5469c54..8f7d967 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -13,6 +13,7 @@ Rails.application.routes.draw do post 'show_detail' get 'add_to_fav' post 'add_to_fav' + post 'add_annotation' end namespace :courses_crawler do @@ -21,6 +22,7 @@ Rails.application.routes.draw do post 'show_detail' get 'add_to_fav' post 'add_to_fav' + post 'add_annotation' end namespace :theses_crawler do @@ -29,6 +31,7 @@ Rails.application.routes.draw do post 'show_detail' get 'add_to_fav' post 'add_to_fav' + post 'add_annotation' end namespace :projects_crawler do @@ -37,6 +40,7 @@ Rails.application.routes.draw do post 'show_detail' get 'add_to_fav' post 'add_to_fav' + post 'add_annotation' end end