We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2f6b43 commit 6ad21a3Copy full SHA for 6ad21a3
app.js
@@ -41,13 +41,13 @@ app.use(helmet({
41
}
42
43
}));
44
+
45
app.use(mongoSanitize())
46
app.use(xss())
47
app.use(hpp())
48
49
app.use(express.json({limit: '50mb'}));
-app.use(express.urlencoded({limit: '50mb'}));
50
-
+// app.use(express.urlencoded({limit: '50mb'}));
51
52
53
src/utility/admin.js
@@ -37,10 +37,11 @@ const initAdminJS = (app) => {
37
cookiePassword: 'Z@hed1234',
38
});
39
40
- // const adminRouter = AdminJSExpress.buildRouter(admin );
app.use(admin.options.rootPath, adminRouter);
console.log(
` AdminJS started on http://localhost":${PORT}${admin.options.rootPath}`
);
0 commit comments