1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00

robots.txt config and route

This commit is contained in:
Rigel Kent 2018-05-15 00:29:40 +02:00 committed by Chocobozzz
parent 2efd32f697
commit ac235c37e2
5 changed files with 17 additions and 2 deletions

View file

@ -44,6 +44,12 @@ staticRouter.use(
asyncMiddleware(getPreview)
)
// robots.txt service
staticRouter.get('/robots.txt', (req: express.Request, res: express.Response) => {
res.type('text/plain')
return res.send(CONFIG.INSTANCE.ROBOTS)
})
// ---------------------------------------------------------------------------
export {