]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/middlewares/robots.ts
Don't manage remote channels
[github/Chocobozzz/PeerTube.git] / server / middlewares / robots.ts
1 import express from 'express'
2
3 function disableRobots (req: express.Request, res: express.Response, next: express.NextFunction) {
4 res.setHeader('X-Robots-Tag', 'noindex')
5
6 return next()
7 }
8
9 // ---------------------------------------------------------------------------
10
11 export {
12 disableRobots
13 }