mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
Add response to REPP log
This commit is contained in:
parent
7edf48c885
commit
a41abf8176
6 changed files with 24 additions and 30 deletions
|
@ -3,8 +3,9 @@ module Repp
|
|||
class RetainedDomainsController < ActionController::API
|
||||
def index
|
||||
domains = RetainedDomains.new(query_params)
|
||||
@response = { count: domains.count, domains: domains.to_jsonable }
|
||||
|
||||
render json: { count: domains.count, domains: domains.to_jsonable }
|
||||
render json: @response
|
||||
end
|
||||
|
||||
def query_params
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue