Merge branch 'k8s-migration' into 'master'

Prefix the health endpoint for the api

See merge request uxf/vnc-avatar!1
This commit is contained in:
Leonidas Apostolidis
2021-03-28 21:21:18 +00:00
+1 -6
View File
@@ -173,16 +173,11 @@ app.delete('/avatarupload/:jid', async function (req, res) {
}
});
app.get('/health', async function (req, res) {
app.get('/avatarupload/health', async function (req, res) {
console.log(moment().format("LTS") + ' health check called');
res.status(200).json({ status: 'OK'});
});
app.get('/', async function (req, res) {
res.status(200).json(null);
});
var server = app.listen(servicePort, function () {
var host = server.address().address;
var port = server.address().port;