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

This commit is contained in:
Manuel Knitza 2013-02-12 21:28:42 +01:00
parent 26f7ae0e55
commit e59496fbe7

View file

@ -57,4 +57,10 @@ 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({"latestApiVersion" : apiHandler.latestAPI});
});
}