Add health endpoint to streaming API (#8441)

GET /api/v1/streaming/health

Answers with OK. Fix #8337
This commit is contained in:
Eugen Rochko 2018-08-26 11:54:25 +02:00 提交者 GitHub
父節點 5c42e8b51b
當前提交 f37fafe30b
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 6 行新增0 行删除

查看文件

@ -452,6 +452,12 @@ const startWorker = (workerId) => {
app.use(setRequestId);
app.use(setRemoteAddress);
app.use(allowCrossDomain);
app.get('/api/v1/streaming/health', (req, res) => {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('OK');
});
app.use(authenticationMiddleware);
app.use(errorMiddleware);