mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
10 lines
241 B
Ruby
10 lines
241 B
Ruby
class Admin::RegistrarsController < ApplicationController
|
|
def search
|
|
render json: Registrar.search_by_query(params[:q])
|
|
end
|
|
|
|
def index
|
|
@q = Registrar.search(params[:q])
|
|
@registrars = @q.result.page(params[:page])
|
|
end
|
|
end
|