Skip to content

Commit

Permalink
Merge branch 'master' into matbgn-endlessBoard
Browse files Browse the repository at this point in the history
  • Loading branch information
cracker0dks committed Dec 16, 2022
2 parents ba3cddb + 7296787 commit 4505b88
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 40 deletions.
60 changes: 21 additions & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"apidoc": "^0.50.3",
"dompurify": "^2.3.4",
"express": "^4.17.2",
"formidable": "^2.0.1",
"formidable": "^2.1.1",
"fs-extra": "7.*",
"html2canvas": "^1.4.1",
"jquery-ui-rotatable": "^1.1.0",
Expand Down
13 changes: 13 additions & 0 deletions scripts/server-backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4505b88

Please sign in to comment.