ソースを参照

Add healthcheck.

parisminton 8 年 前
コミット
8700b8dc69
共有1 個のファイルを変更した5 個の追加0 個の削除を含む
  1. 5 0
      server/index.js

+ 5 - 0
server/index.js ファイルの表示

@@ -63,6 +63,11 @@ if (serverSettings.fonts) {
63 63
 // Check the status of a current video
64 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 72
 // Serve background images and themes JSON statically
68 73
 app.use("/settings/", function(req, res, next) {