0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-23 01:40:29 +01:00
discourse-custom-wizard/controllers/custom_wizard/item.rb

13 Zeilen
301 B
Ruby

class CustomWizard::ItemsController < ::ApplicationController
def search
search_params = {
name: params[:name],
value: params[:value] || '',
limit: params[:limit] || 5
}
items = CustomWizard::Item.search(search_params)
render json: MultiJson.dump(items)
end
end