mirror of https://github.com/TriliumNext/Notes
added app-info method to etapi #2697
parent
c9e72f8fb9
commit
eba824a5b1
@ -0,0 +1,12 @@
|
|||||||
|
const appInfo = require('../services/app_info');
|
||||||
|
const eu = require("./etapi_utils.js");
|
||||||
|
|
||||||
|
function register(router) {
|
||||||
|
eu.route(router, 'get', '/etapi/app-info', (req, res, next) => {
|
||||||
|
res.status(200).json(appInfo);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
register
|
||||||
|
};
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
GET {{triliumHost}}/etapi/app-info
|
||||||
|
Authorization: {{authToken}}
|
||||||
|
|
||||||
|
> {%
|
||||||
|
client.assert(response.status === 200);
|
||||||
|
client.assert(response.body == "Hi there!");
|
||||||
|
%}
|
||||||
Loading…
Reference in New Issue