Update src/node/hooks/express/apicalls.js
parent
14dca92692
commit
e855bafdf9
|
@ -57,4 +57,9 @@ exports.expressCreateServer = function (hook_name, args, cb) {
|
||||||
res.end("OK");
|
res.end("OK");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//Provide a possibility to query the latest available API version
|
||||||
|
args.app.get('/api', function (req, res) {
|
||||||
|
res.json({"currentVersion" : apiHandler.latestApiVersion});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue