mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
init project
This commit is contained in:
13
app/controllers/searchs_controller.rb
Normal file
13
app/controllers/searchs_controller.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class SearchsController < ApplicationController
|
||||
after_action :record_search_keyword, only: [:index]
|
||||
|
||||
def index
|
||||
@results = SearchService.call(search_params)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def search_params
|
||||
params.permit(:keyword, :type, :page, :per_page)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user