Add response to REPP log

This commit is contained in:
Karl Erik Õunapuu 2020-11-17 13:00:47 +02:00
parent 7edf48c885
commit a41abf8176
No known key found for this signature in database
GPG key ID: C9DD647298A34764
6 changed files with 24 additions and 30 deletions

View file

@ -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