mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 05:05:45 +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
|
@ -9,8 +9,8 @@ module Repp
|
|||
record_count = current_user.registrar.contacts.count
|
||||
contacts = showable_contacts(params[:details], params[:limit] || 200,
|
||||
params[:offset] || 0)
|
||||
|
||||
render(json: { contacts: contacts, total_number_of_records: record_count }, status: :ok)
|
||||
@response = { contacts: contacts, total_number_of_records: record_count }
|
||||
render(json: @response, status: :ok)
|
||||
end
|
||||
|
||||
## GET /repp/v1/contacts/1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue