mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-12-01 12:59:15 -06:00
14 lines
300 B
TypeScript
14 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
|
||
|
}
|