TASK22028: phase 15 hash guard consistency hardening slice

This commit is contained in:
2026-03-13 16:04:31 +00:00
parent 0ca6cd94cc
commit 1a95cf1098
9 changed files with 458 additions and 11 deletions
+10 -10
View File
@@ -29,18 +29,18 @@ ApiProxy.get(async (req, res) => {
var checkquerypath = "/api/file/setupcontainer?ident=" + containerName;
if (hashAPIPath(checkquerypath) == "&hash=" + checkHash) {
await createContainer(containerName)
.then((data) => {
return res.status(200).json({ data: "success", output: data });
})
.catch((error) => {
consoleLogger(error);
res.status(400).json(error);
});
} else {
if (hashAPIPath(checkquerypath) != "&hash=" + checkHash) {
return res.status(400).json();
}
await createContainer(containerName)
.then((data) => {
return res.status(200).json({ data: "success", output: data });
})
.catch((error) => {
consoleLogger(error);
res.status(400).json(error);
});
});
export const config = {