mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
b6bf95e741
correct group permission leaks add Discourse.cache for richer caching support
10 lines
260 B
Ruby
10 lines
260 B
Ruby
require_dependency 'search'
|
|
|
|
class SearchController < ApplicationController
|
|
|
|
def query
|
|
search_result = Search.query(params[:term], guardian, params[:type_filter], SiteSetting.min_search_term_length)
|
|
render_json_dump(search_result.as_json)
|
|
end
|
|
|
|
end
|