refs #6533 perf: define remoteMethod
This commit is contained in:
parent
c90b829e5c
commit
cadf0e9483
|
@ -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) {
|
||||
};
|
||||
};
|
Loading…
Reference in New Issue