refs #6533 perf: define remoteMethod
gitea/salix/pipeline/head There was a failure building this commit Details
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Javier Segarra 2023-12-05 14:03:04 +01:00
parent c90b829e5c
commit cadf0e9483
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
module.exports = Self => {
Self.remoteMethod('logInfo', {
description: 'Gets all models information',
accepts: [
{
arg: 'ctx',
type: 'Object',
http: {source: 'context'}
}
],
returns: {
type: 'Object',
root: true
},
http: {
path: `/logInfo`,
verb: 'GET'
}
});
Self.logInfo = async function(ctx) {
};
};