#6533 - MyLogger to salix #1877

Open
jsegarra wants to merge 12 commits from 6533_myLogger_model into dev
3 changed files with 34 additions and 0 deletions
Showing only changes of commit 6ee28d56b2 - Show all commits

View File

@ -0,0 +1,26 @@
const packageJson = require(`${process.cwd()}/package.json`);
module.exports = Self => {
Self.remoteMethod('version', {
description: 'Gets all models information',
accepts: [
{
arg: 'ctx',
type: 'Object',
http: {source: 'context'}
}
],
returns: {
type: 'Object',
root: true
},
http: {
path: `/version`,
verb: 'GET'
}
});
Self.version = async function(ctx) {
return packageJson.version;
};
};

View File

@ -1,9 +1,11 @@
module.exports = function(Self) {
require('../methods/application/status')(Self);
require('../methods/application/version')(Self);
require('../methods/application/post')(Self);
require('../methods/application/execute')(Self);
require('../methods/application/executeProc')(Self);
require('../methods/application/executeFunc')(Self);
require('../methods/application/getEnumValues')(Self);
require('../methods/application/getEnumValues')(Self);
};

View File

@ -8,6 +8,12 @@
"principalId": "$everyone",
"permission": "ALLOW"
},
{
"property": "version",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
},
{
"property": "post",
"principalType": "ROLE",