class Avo::SearchController

def index

def index
  raise ActionController::BadRequest.new("This feature requires the pro license https://avohq.io/purchase/pro") if App.license.lacks_with_trial(:global_search)
  render json: search_resources(Avo::App.resources)
end