mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
This needed a new name, there are several classes of database object to be included in that endpoint. Currently, there is one list ordered by name, with each object containing status and ascii name for convenience. Can be converted to multiple fields (reserved and blocked separately). Also contains total count. Includes CORS preflight which seems to be a known problem for Rails in the past.
11 lines
243 B
Ruby
11 lines
243 B
Ruby
module Repp
|
|
module V1
|
|
class RetainedDomainsController < ActionController::API
|
|
def index
|
|
domains = RetainedDomains.new
|
|
|
|
render json: { count: domains.count, domains: domains.to_jsonable }
|
|
end
|
|
end
|
|
end
|
|
end
|