mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
16 lines
359 B
Ruby
16 lines
359 B
Ruby
module Repp
|
|
class ContactV1 < Grape::API
|
|
version 'v1', using: :path
|
|
|
|
resource :contacts do
|
|
desc 'Return list of contact'
|
|
get '/' do
|
|
contacts = current_user.registrar.contacts.page(params[:page])
|
|
@response = {
|
|
contacts: contacts,
|
|
total_pages: contacts.total_pages
|
|
}
|
|
end
|
|
end
|
|
end
|
|
end
|