mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-15 03:26:53 -04:00
/API/versions endpoint
Provide a possibility to query a list of all available API versions
This commit is contained in:
parent
9c754a7397
commit
a70dfb43cf
1 changed files with 5 additions and 0 deletions
|
@ -62,4 +62,9 @@ exports.expressCreateServer = function (hook_name, args, cb) {
|
||||||
args.app.get('/api', function (req, res) {
|
args.app.get('/api', function (req, res) {
|
||||||
res.json({"currentVersion" : apiHandler.latestApiVersion});
|
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);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue