mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 13:36:15 +02:00
Add registrant phone to whois record json
This commit is contained in:
parent
3401a9fc47
commit
5c70e9f38b
5 changed files with 21 additions and 17 deletions
|
@ -3,7 +3,6 @@ module Api
|
|||
class ContactRequestsController < BaseController
|
||||
before_action :authenticate_shared_key
|
||||
|
||||
# POST api/v1/contact_requests/
|
||||
def create
|
||||
return head(:bad_request) if contact_request_params[:email].blank?
|
||||
|
||||
|
@ -19,6 +18,8 @@ module Api
|
|||
process_id(params[:id])
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def process_id(id)
|
||||
record = ContactRequest.find_by(id: id)
|
||||
return :not_found unless record
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue