瀏覽代碼

Add healthcheck.

parisminton 8 年之前
父節點
當前提交
8700b8dc69
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      server/index.js

+ 5 - 0
server/index.js 查看文件

63
 // Check the status of a current video
63
 // Check the status of a current video
64
 app.get("/status/:id/", status);
64
 app.get("/status/:id/", status);
65
 
65
 
66
+// Healthcheck
67
+app.get("/healthcheck/", function(req, res, next) {
68
+  return res.status(200).send('I\'m a happy healthcheck.');
69
+});
70
+
66
 
71
 
67
 // Serve background images and themes JSON statically
72
 // Serve background images and themes JSON statically
68
 app.use("/settings/", function(req, res, next) {
73
 app.use("/settings/", function(req, res, next) {