Add registrant phone to whois record json

This commit is contained in:
Thiago Youssef 2022-07-11 11:20:05 -03:00 committed by olegphenomenon
parent 3401a9fc47
commit 5c70e9f38b
5 changed files with 21 additions and 17 deletions

View file

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