PeerTube/server/middlewares/robots.ts

14 lines
300 B
TypeScript
Raw Normal View History

2021-10-08 04:06:02 -05:00
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
}