mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 20:27:30 +02:00
16 lines
350 B
Ruby
16 lines
350 B
Ruby
module Repp
|
|
module V1
|
|
class RetainedDomainsController < ActionController::API
|
|
def index
|
|
domains = RetainedDomains.new(query_params)
|
|
@response = { count: domains.count, domains: domains.to_jsonable }
|
|
|
|
render json: @response
|
|
end
|
|
|
|
def query_params
|
|
params.permit(:type)
|
|
end
|
|
end
|
|
end
|
|
end
|