...
|
...
|
@@ -46,7 +46,9 @@ app.use(cookieSession({ |
|
|
app.use(compression());
|
|
|
app.use(favicon(path.join(__dirname, '/favicon.ico')));
|
|
|
app.use(Express.static(path.join(__dirname, 'public')));
|
|
|
app.use(bodyParser.json());
|
|
|
app.use(bodyParser.json({
|
|
|
limit: 1 * 1024 * 1024 // 限制请求长度1m
|
|
|
}));
|
|
|
app.use(bodyParser.urlencoded({extended: false}));
|
|
|
app.use(cookieParser());
|
|
|
app.use(multipartMiddleware);
|
...
|
...
|
|