mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 07:26:22 +02:00
parent
2db401fd98
commit
0cdbd891cc
2 changed files with 7 additions and 7 deletions
|
@ -11,7 +11,7 @@ class Registrar
|
|||
ipv6 = params[:ipv6].split("\r\n")
|
||||
|
||||
uri = URI.parse("#{ENV['repp_url']}registrar/nameservers")
|
||||
request = Net::HTTP::Post.new(uri, 'Content-Type' => 'application/json')
|
||||
request = Net::HTTP::Put.new(uri, 'Content-Type' => 'application/json')
|
||||
request.body = { data: { type: 'nameserver', id: params[:old_hostname],
|
||||
attributes: { hostname: params[:new_hostname],
|
||||
ipv4: ipv4,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue