1
0
Fork 0
peertube/server/middlewares/robots.ts
2021-10-11 09:37:26 +02:00

13 lines
300 B
TypeScript

import express from 'express'
function disableRobots (req: express.Request, res: express.Response, next: express.NextFunction) {
res.setHeader('X-Robots-Tag', 'noindex')
return next()
}
// ---------------------------------------------------------------------------
export {
disableRobots
}