Add JSDoc to server/routers/*

Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>
This commit is contained in:
Matthew Nickson 2022-04-21 16:43:24 +01:00
parent 6d22ebedca
commit 3d04befc1f
No known key found for this signature in database
GPG Key ID: BF229DCFD4748E05
1 changed files with 5 additions and 0 deletions

View File

@ -196,6 +196,11 @@ router.get("/api/status-page/heartbeat/:slug", cache("1 minutes"), async (reques
}
});
/**
* Send a 403 response
* @param {Object} res Express response object
* @param {string} [msg=""] Message to send
*/
function send403(res, msg = "") {
res.status(403).json({
"status": "fail",