mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
b9a310f4b1
than passing params everywhere. Also make the private API private.
13 lines
288 B
Ruby
13 lines
288 B
Ruby
require_dependency 'search'
|
|
|
|
class SearchController < ApplicationController
|
|
|
|
def query
|
|
search = Search.new(params[:term],
|
|
guardian: guardian,
|
|
type_filter: params[:type_filter])
|
|
|
|
render_json_dump(search.execute.as_json)
|
|
end
|
|
|
|
end
|