about summary refs log tree commit diff
path: root/app/views/well_known/host_meta
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/well_known/host_meta')
-rw-r--r--app/views/well_known/host_meta/show.xml.ruby5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/well_known/host_meta/show.xml.ruby b/app/views/well_known/host_meta/show.xml.ruby
new file mode 100644
index 000000000..07d026471
--- /dev/null
+++ b/app/views/well_known/host_meta/show.xml.ruby
@@ -0,0 +1,5 @@
+Nokogiri::XML::Builder.new do |xml|
+  xml.XRD(xmlns: 'http://docs.oasis-open.org/ns/xri/xrd-1.0') do
+    xml.Link(rel: 'lrdd', type: 'application/xrd+xml', template: @webfinger_template)
+  end
+end.to_xml