From 3d04befc1f1f547eb366056003126ffd56aa8be3 Mon Sep 17 00:00:00 2001 From: Matthew Nickson Date: Thu, 21 Apr 2022 16:43:24 +0100 Subject: [PATCH] Add JSDoc to server/routers/* Signed-off-by: Matthew Nickson --- server/routers/api-router.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/routers/api-router.js b/server/routers/api-router.js index 578655e2..6d1a8d7b 100644 --- a/server/routers/api-router.js +++ b/server/routers/api-router.js @@ -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",