Skip to content

Commit 321cac5

Browse files
author
devboell
committed
commenting out morgan (logging) middleware
1 parent 539c03c commit 321cac5

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

plugins/express.js

+18-15
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
'use strict';
1+
"use strict";
22

3-
const bodyParser = require('body-parser');
3+
const bodyParser = require("body-parser");
44

55
module.exports = {
6-
76
methodOverride: {
8-
plugin: require('method-override')
7+
plugin: require("method-override")
98
},
109

1110
bodyParserText: {
@@ -14,30 +13,34 @@ module.exports = {
1413

1514
bodyParserJson: {
1615
plugin: bodyParser.json,
17-
opts: { limit: '5MB' }
16+
opts: { limit: "5MB" }
1817
},
1918

20-
morgan: {
21-
plugin: require('morgan'),
22-
opts: 'combined'
23-
},
19+
// morgan: {
20+
// plugin: require('morgan'),
21+
// opts: 'combined'
22+
// },
2423

2524
responseTime: {
26-
plugin: require('response-time')
25+
plugin: require("response-time")
2726
},
2827

2928
cors: {
30-
plugin: require('cors'),
29+
plugin: require("cors"),
3130
opts: {
32-
methods: ['GET', 'POST', 'OPTIONS', 'DELETE', 'PATCH', 'UPDATE', 'PUT'],
31+
methods: ["GET", "POST", "OPTIONS", "DELETE", "PATCH", "UPDATE", "PUT"],
3332
credentials: true,
34-
allowedHeaders: ['Authorization', 'Access-Control-Allow-Credentials', 'Accept', 'Content-Type'],
33+
allowedHeaders: [
34+
"Authorization",
35+
"Access-Control-Allow-Credentials",
36+
"Accept",
37+
"Content-Type"
38+
],
3539
origin: true
3640
}
3741
},
3842

3943
queryParams: {
40-
plugin: require('express-query-params')
44+
plugin: require("express-query-params")
4145
}
42-
4346
};

0 commit comments

Comments
 (0)