Add powered by header

This commit is contained in:
rijkvanzanten
2020-07-13 16:39:23 -04:00
parent 8ca92cb48d
commit ff961de4ce

View File

@@ -37,6 +37,10 @@ const app = express()
.use(logger())
.use(bodyParser.json())
.use(extractToken)
.use((req, res, next) => {
res.setHeader('X-Powered-By', 'Directus');
next();
})
// the auth endpoints allow you to login/logout etc. It should ignore the authentication check
.use('/auth', authRouter)