newStaffLDB-API #48
3
app.js
3
app.js
@ -54,6 +54,9 @@ log.out(
|
|||||||
"init"
|
"init"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Remove X-Powered-By header:
|
||||||
|
app.disable('x-powered-by');
|
||||||
|
|
||||||
// Express Error Handling:
|
// Express Error Handling:
|
||||||
app.use((err, req, res, next) => {
|
app.use((err, req, res, next) => {
|
||||||
const statusCode = err.statuscode || 500;
|
const statusCode = err.statuscode || 500;
|
||||||
|
Loading…
Reference in New Issue
Block a user