Class: HostMetaController

Inherits:
ActionController::Metal
  • Object
show all
Includes:
ActionController::Redirecting
Defined in:
app/controllers/host_meta_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject


5
6
7
8
# File 'app/controllers/host_meta_controller.rb', line 5

def index
  self.response_body = Proudhon::HostMeta.to_xml("#{ webfinger_url }?q={uri}")
  self.content_type  = Mime::XML
end