update host-meta templates to return webfinger/LRDD links

pull/27/head
Ryan Barrett 2017-09-12 06:39:30 -07:00
rodzic 51b92c2d81
commit e16c455ec2
3 zmienionych plików z 5 dodań i 4 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
{
"rel": "lrdd",
"type": "application/json",
"template": "https://{{ host }}/{uri}&format=json"
"template": "{{ host_uri }}/.well-known/webfinger?resource={uri}"
}
]
}

Wyświetl plik

@ -1,4 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
<XRD xmlns='http://docs.oasis-open.org/ns/xri/xrd-1.0'>
<Link rel='lrdd' type='application/xrd+xml' template='https://{{ host }}/{uri}' />
<Link rel='lrdd' type='application/json'
template='{{ host_uri }}/.well-known/webfinger?resource={uri}' />
</XRD>

Wyświetl plik

@ -3,8 +3,8 @@
xmlns="xri://$XRD*($v*2.0)" version="2.0">
<Type>xri://$xrds*simple</Type>
<Service>
<Type>http://portablecontacts.net/spec/1.0</Type>
<URI>https://{{ host }}/{uri}</URI>
<Type>lrdd</Type>
<URI>{{ host_uri }}/.well-known/webfinger?resource={uri}</URI>
</Service>
</XRD>
</XRDS>