mirror of
https://github.com/internetee/registry.git
synced 2025-06-03 03:07:28 +02:00
business registry contacts - endpoints for send status of contacts and receive confirmation
This commit is contained in:
parent
a393854e1a
commit
db012dd7da
7 changed files with 188 additions and 29 deletions
|
@ -34,6 +34,17 @@ module Api
|
|||
end
|
||||
end
|
||||
|
||||
def do_need_update_contact
|
||||
result = current_registrant_user.do_need_update_contact?
|
||||
render json: { update_contacts: result[:result], counter: result[:counter] }
|
||||
end
|
||||
|
||||
def update_company_contacts
|
||||
companies = current_registrant_user.update_company_contacts
|
||||
|
||||
render json: { message: 'get it', companies: companies }
|
||||
end
|
||||
|
||||
def update
|
||||
logger.debug 'Received update request'
|
||||
logger.debug params
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue