Skip to content

Commit 6ad21a3

Browse files
committed
admin fiexd
1 parent b2f6b43 commit 6ad21a3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ app.use(helmet({
4141
}
4242
}
4343
}));
44+
4445
app.use(mongoSanitize())
4546
app.use(xss())
4647
app.use(hpp())
4748

4849
app.use(express.json({limit: '50mb'}));
49-
app.use(express.urlencoded({limit: '50mb'}));
50-
50+
// app.use(express.urlencoded({limit: '50mb'}));
5151

5252

5353

src/utility/admin.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ const initAdminJS = (app) => {
3737
cookiePassword: 'Z@hed1234',
3838
});
3939

40-
// const adminRouter = AdminJSExpress.buildRouter(admin );
40+
4141

4242
app.use(admin.options.rootPath, adminRouter);
4343

44+
4445
console.log(
4546
` AdminJS started on http://localhost":${PORT}${admin.options.rootPath}`
4647
);

0 commit comments

Comments
 (0)