X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fcontrollers%2Fstatic.ts;h=a6b46244379bcfc0af5b490d0fbb63e07540c75d;hb=e0ce715a1ded6e84c877004dae3e354c8716fb06;hp=d57dba6ce24eae3f0ee07b56d7d80b95eb0c65e8;hpb=73b3aa6429dfb2e31628fa09a479dce318289d7d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/controllers/static.ts b/server/controllers/static.ts index d57dba6ce..a6b462443 100644 --- a/server/controllers/static.ts +++ b/server/controllers/static.ts @@ -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 = '\n' + + '\n' + + ` \n` + + '' + + res.send(xml).end() + } +) + // --------------------------------------------------------------------------- export {