Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimfacion authored Mar 29, 2021
1 parent a41f339 commit 1d41286
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ app.get("/", function (req, res) {
res.send("Baldr is awake and shining !");
});

app.get("/password", function (req, res) {
if(req.query.password === 'persephone') {
res.send("cerberusisagoodboi");
} else {
res.send("");
}
});

app.post("/upload/:slicerType", function (req, res) {
for (var i = 0; i < Object.keys(req.files).length; i++) {
var nameObject = Object.keys(req.files)[i];
Expand Down

0 comments on commit 1d41286

Please sign in to comment.