mirror of
https://github.com/directus/directus.git
synced 2026-02-11 01:15:04 -05:00
Disable x-powered-by header
This commit is contained in:
@@ -6,6 +6,10 @@ import bodyParser from 'body-parser';
|
||||
import { errorHandler } from './error';
|
||||
import itemsRouter from './routes/items';
|
||||
|
||||
const app = express().use(bodyParser.json()).use('/items', itemsRouter).use(errorHandler);
|
||||
const app = express()
|
||||
.disable('x-powered-by')
|
||||
.use(bodyParser.json())
|
||||
.use('/items', itemsRouter)
|
||||
.use(errorHandler);
|
||||
|
||||
export default app;
|
||||
|
||||
Reference in New Issue
Block a user