diff --git a/src/node/hooks/express/apicalls.js b/src/node/hooks/express/apicalls.js index 0971a877b..0168eb06c 100644 --- a/src/node/hooks/express/apicalls.js +++ b/src/node/hooks/express/apicalls.js @@ -62,4 +62,9 @@ exports.expressCreateServer = function (hook_name, args, cb) { args.app.get('/api', function (req, res) { res.json({"currentVersion" : apiHandler.latestApiVersion}); }); + + //Provide a possibility to query a list of all available API versions + args.app.get('/api/versions', function (req, res) { + res.json(apiHandler.versions); + }); }