From cadf0e9483dda796e9fd26c513934d15b4c5c14b Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 5 Dec 2023 14:03:04 +0100 Subject: [PATCH] refs #6533 perf: define remoteMethod --- loopback/common/methods/schema/log-info.js | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 loopback/common/methods/schema/log-info.js diff --git a/loopback/common/methods/schema/log-info.js b/loopback/common/methods/schema/log-info.js new file mode 100644 index 000000000..193471841 --- /dev/null +++ b/loopback/common/methods/schema/log-info.js @@ -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) { + }; +};