Skip to content

Commit

Permalink
#464 Integrate new config page into MMGIS server, start of layers tab
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed Mar 19, 2024
1 parent b94a21f commit 7dd0935
Show file tree
Hide file tree
Showing 16 changed files with 911 additions and 40 deletions.
8 changes: 5 additions & 3 deletions API/Backend/Config/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let setup = {
s.ensureAdmin(true),
(req, res) => {
const user = process.env.AUTH === "csso" ? req.user : null;
res.render("configure", {
res.render("../configure/build/index.pug", {
user: user,
AUTH: process.env.AUTH,
NODE_ENV: process.env.NODE_ENV,
Expand All @@ -33,10 +33,12 @@ let setup = {
}
);
}

console.log(
"ERROR - ensureAdmin off!!!!!!!!!!!!!!!!!!!!!! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
);
s.app.use(
s.ROOT_PATH + "/API/configure",
s.ensureAdmin(),
//s.ensureAdmin(),
s.checkHeadersCodeInjection,
s.setContentType,
router
Expand Down
258 changes: 257 additions & 1 deletion configure/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7dd0935

Please sign in to comment.