This commit is contained in:
parent
881643be84
commit
51ecfa9556
1 changed files with 6 additions and 0 deletions
|
@ -59,6 +59,12 @@ namespace BirdsiteLive.Controllers
|
|||
return new JsonResult(nodeInfo);
|
||||
}
|
||||
|
||||
[Route("/.well-known/host-meta")]
|
||||
public IActionResult HostMeta()
|
||||
{
|
||||
return Content($"<?xml version=\"1.0\" encoding=\"UTF-8\"?><XRD xmlns=\"http://docs.oasis-open.org/ns/xri/xrd-1.0\"><Link rel=\"lrdd\" template=\"https://{_settings.Domain}/.well-known/webfinger?resource={{uri}}\" type=\"application/xrd+xml\" /></XRD>", "application/xrd+xml; charset=utf-8");
|
||||
}
|
||||
|
||||
[Route("/nodeinfo/{id}.json")]
|
||||
public async Task<IActionResult> NodeInfo(string id)
|
||||
{
|
||||
|
|
Reference in a new issue