mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
TEMP
This commit is contained in:
parent
14675f5bb7
commit
ab6f59c09e
8 changed files with 48 additions and 2 deletions
11
app/controllers/registrant/whois_controller.rb
Normal file
11
app/controllers/registrant/whois_controller.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class Registrant::WhoisController < RegistrantController
|
||||
def index
|
||||
authorize! :view, Registrant::Whois
|
||||
if params[:domain_name].present?
|
||||
whois_url = "#{ENV['restful_whois_url']}/v1/#{params[:domain_name]}"
|
||||
binding.pry
|
||||
page = Nokogiri::HTML(open(whois_url))
|
||||
@results = 'ee'
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue