2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FEATURE: show recent searches in quick search panel (#15024)

This commit is contained in:
Penar Musaraj 2021-11-25 15:44:15 -05:00 committed by GitHub
parent 5647819de4
commit d99deaf1ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 286 additions and 7 deletions

View file

@ -428,6 +428,8 @@ Discourse::Application.routes.draw do
put "#{root_path}/admin-login" => "users#admin_login"
post "#{root_path}/toggle-anon" => "users#toggle_anon"
post "#{root_path}/read-faq" => "users#read_faq"
get "#{root_path}/recent-searches" => "users#recent_searches", constraints: { format: 'json' }
delete "#{root_path}/recent-searches" => "users#reset_recent_searches", constraints: { format: 'json' }
get "#{root_path}/search/users" => "users#search_users"
get({ "#{root_path}/account-created/" => "users#account_created" }.merge(index == 1 ? { as: :users_account_created } : { as: :old_account_created }))