]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/middlewares/robots.ts
Better 413 error handling in cli script
[github/Chocobozzz/PeerTube.git] / server / middlewares / robots.ts
CommitLineData
42cc1887
C
1import express from 'express'
2
3function 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
11export {
12 disableRobots
13}