now actually sends a correct statuscode when not being logged in
This commit is contained in:
parent
d2d3e8828f
commit
eee57759f9
@ -232,6 +232,7 @@ router.use("/api/*",async function(req,res,next) {
|
|||||||
next()
|
next()
|
||||||
} else {
|
} else {
|
||||||
console.log(result[0],values[0],values[1]);
|
console.log(result[0],values[0],values[1]);
|
||||||
|
res.status(400)
|
||||||
res.json({"error":"you cannot access the api without being logged in"})
|
res.json({"error":"you cannot access the api without being logged in"})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user