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