Skip to content

Commit

Permalink
Merge pull request #43 from scientist-softserv/remove-search-history-…
Browse files Browse the repository at this point in the history
…route

🎁 Remove search history route
  • Loading branch information
kirkkwang authored Aug 27, 2024
2 parents 4004211 + 7fdc2d4 commit f291107
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ class ApplicationController < ActionController::Base
include Blacklight::Controller
include Blacklight::LocalePicker::Concern
layout :determine_layout if respond_to? :layout

def render404
raise ActionController::RoutingError, 'Not Found'
end
end
5 changes: 5 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# frozen_string_literal: true

Rails.application.routes.draw do
##### REMOVE SEARCH HISTORY #####
# Note: has to be before we mount Blacklight::Engine
get '/search_history', to: 'application#render404'
delete '/search_history/clear', to: 'application#render404'

mount Blacklight::Engine => '/'
mount Arclight::Engine => '/'

Expand Down

0 comments on commit f291107

Please sign in to comment.