mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Merge branch 'release/v1.3.0' into develop
This commit is contained in:
commit
b91bc1d1f3
15 changed files with 122 additions and 65 deletions
|
@ -156,6 +156,19 @@ staticRouter.use('/.well-known/change-password',
|
|||
}
|
||||
)
|
||||
|
||||
staticRouter.use('/.well-known/host-meta',
|
||||
(_, res: express.Response) => {
|
||||
res.type('application/xml')
|
||||
|
||||
const xml = '<?xml version="1.0" encoding="UTF-8"?>\n' +
|
||||
'<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">\n' +
|
||||
` <Link rel="lrdd" type="application/xrd+xml" template="${WEBSERVER.URL}/.well-known/webfinger?resource={uri}"/>\n` +
|
||||
'</XRD>'
|
||||
|
||||
res.send(xml).end()
|
||||
}
|
||||
)
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue