mirror of
https://github.com/directus/directus.git
synced 2026-02-16 06:45:07 -05:00
Add powered by header
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user