diff --git a/scripts/server-backend.js b/scripts/server-backend.js index 4ad7501..fa0c3e1 100644 --- a/scripts/server-backend.js +++ b/scripts/server-backend.js @@ -34,6 +34,19 @@ function startBackendServer(port) { app.use(express.static(path.join(__dirname, "..", "dist"))); app.use("/uploads", express.static(path.join(__dirname, "..", "public", "uploads"))); + /** + * @api {get} /api/health Health Check + * @apiDescription This returns nothing but a status code of 200 + * @apiName health + * @apiGroup WhiteboardAPI + * + * @apiSuccess {Number} 200 OK + */ + app.get("/api/health", function (req, res) { + res.status(200); //OK + res.end(); + }); + /** * @api {get} /api/loadwhiteboard Get Whiteboard Data * @apiDescription This returns all the Available Data ever drawn to this Whiteboard