Add health endpoint to streaming API (#8441)

GET /api/v1/streaming/health

Answers with OK. Fix #8337
lolsob-rspec
Eugen Rochko 2018-08-26 11:54:25 +02:00 committed by GitHub
parent f89bd5fca5
commit ec9e959ef9
1 changed files with 6 additions and 0 deletions

View File

@ -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);