[#330] fix searh api
This commit is contained in:
parent
92db8c7968
commit
89f322cd24
|
@ -5,6 +5,7 @@ class Api::V1::SearchController < Api::V1::BaseController
|
|||
@results = Search.by_term_and_type(
|
||||
params[:query],
|
||||
(params[:type] || 'all'),
|
||||
current_ability,
|
||||
paginate_params
|
||||
)
|
||||
respond_to :json
|
||||
|
|
Loading…
Reference in New Issue