@terreno/api 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/expressServer.js +1 -1
- package/package.json +1 -1
- package/src/expressServer.ts +1 -1
package/dist/expressServer.js
CHANGED
|
@@ -242,7 +242,7 @@ function initializeRoutes(UserModel, addRoutes, options) {
|
|
|
242
242
|
if (options.addMiddleware) {
|
|
243
243
|
options.addMiddleware(app);
|
|
244
244
|
}
|
|
245
|
-
app.use(express_1.default.json());
|
|
245
|
+
app.use(express_1.default.json({ limit: "50mb" }));
|
|
246
246
|
// Add login/signup/refresh_token before the JWT/auth middlewares
|
|
247
247
|
(0, auth_1.addAuthRoutes)(app, UserModel, options === null || options === void 0 ? void 0 : options.authOptions);
|
|
248
248
|
(0, auth_1.setupAuth)(app, UserModel);
|
package/package.json
CHANGED
package/src/expressServer.ts
CHANGED
|
@@ -193,7 +193,7 @@ function initializeRoutes(
|
|
|
193
193
|
options.addMiddleware(app);
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
app.use(express.json());
|
|
196
|
+
app.use(express.json({limit: "50mb"}));
|
|
197
197
|
|
|
198
198
|
// Add login/signup/refresh_token before the JWT/auth middlewares
|
|
199
199
|
addAuthRoutes(app, UserModel as any, options?.authOptions);
|