Added additional time logging.
This commit is contained in:
@@ -14,6 +14,8 @@ import { BillsListMedia } from "./bills/billsListMedia";
|
||||
import BillRequestValidator from "./bills/billRequestValidator";
|
||||
import cors from "cors";
|
||||
import helmet from "helmet";
|
||||
import responseTime from "response-time";
|
||||
|
||||
import {
|
||||
BillsMediaUploadMulter,
|
||||
BillsUploadMedia,
|
||||
@@ -103,9 +105,9 @@ if (process.env.NODE_ENV !== "production") {
|
||||
|
||||
const app: Express = express();
|
||||
const port = process.env.PORT;
|
||||
app.use(bodyParser.json({ limit: "50mb" }));
|
||||
app.use(bodyParser.urlencoded({ limit: "50mb", extended: true }));
|
||||
|
||||
app.use(bodyParser.json({ limit: "1000mb" }));
|
||||
app.use(bodyParser.urlencoded({ limit: "1000mb", extended: true }));
|
||||
app.use(responseTime());
|
||||
app.use(cors());
|
||||
|
||||
const morganMiddleware = morgan(
|
||||
|
||||
Reference in New Issue
Block a user