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

pull/1511/head
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});
});
}