Update src/node/hooks/express/apicalls.js

This commit is contained in:
Manuel Knitza 2013-02-12 21:47:40 +01:00
parent 14dca92692
commit e855bafdf9
1 changed files with 5 additions and 0 deletions

View File

@ -57,4 +57,9 @@ exports.expressCreateServer = function (hook_name, args, cb) {
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});
});
}