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:
+1
-6
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user