mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 19:48:28 +02:00
Log REPP requests
This commit is contained in:
parent
0544dbd3ff
commit
568c52129f
8 changed files with 38 additions and 16 deletions
|
@ -5,8 +5,8 @@ module Repp
|
|||
resource :contacts do
|
||||
desc 'Return list of contact'
|
||||
get '/' do
|
||||
contacts = current_user.registrar.contacts.page(params[:page])
|
||||
{
|
||||
contacts = current_api_user.registrar.contacts.page(params[:page])
|
||||
@response = {
|
||||
contacts: contacts,
|
||||
total_pages: contacts.total_pages
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue