aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/middlewares/robots.ts
blob: b22b24a9f859b59ace7e29297315fb41923c79f2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13











                                                                                                  
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
}