actually write the handling for saving posts

This commit is contained in:
Enstrayed
2024-06-13 01:16:52 -07:00
parent 1443b360b6
commit 2d80120f81
3 changed files with 95 additions and 103 deletions

View File

@@ -7,7 +7,7 @@ app.post("/sendemail", (rreq,rres) => {
if (authRes === false) { // If the supplied authorization is invalid or an error occured
console.log(`${rreq.get("cf-connecting-ip")} POST /sendemail returned 401`) // Log the request
rres.sendStatus(401) // Return 401 Unauthorized
rres.sendStatus(401)
} else if (authRes === true) { // If the authorization was valid, continue function