Clean up well-known routes/controllers (#1649)
* Add request spec for host meta route returning xml * Add routing spec for xrd routes * Update well-known routes * Move webfinger and host-meta actions to their own controllers
This commit is contained in:
parent
3a9eb81a80
commit
137100dcf3
12 changed files with 119 additions and 83 deletions
5
app/views/well_known/host_meta/show.xml.ruby
Normal file
5
app/views/well_known/host_meta/show.xml.ruby
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue