Browse Source

Add health endpoint to streaming API (#8441)

GET /api/v1/streaming/health

Answers with OK. Fix #8337
Eugen Rochko 3 months ago
parent
commit
f37fafe30b
No account linked to committer's email address
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      streaming/index.js

+ 6
- 0
streaming/index.js View File

@@ -452,6 +452,12 @@ const startWorker = (workerId) => {
452 452
   app.use(setRequestId);
453 453
   app.use(setRemoteAddress);
454 454
   app.use(allowCrossDomain);
455
+
456
+  app.get('/api/v1/streaming/health', (req, res) => {
457
+    res.writeHead(200, { 'Content-Type': 'text/plain' });
458
+    res.end('OK');
459
+  });
460
+
455 461
   app.use(authenticationMiddleware);
456 462
   app.use(errorMiddleware);
457 463