From d299f455d6f235e6d34ef7d7f1aaf5a2fca2612c Mon Sep 17 00:00:00 2001 From: Carlos Jimenez Ruiz Date: Thu, 21 May 2020 09:06:02 +0200 Subject: [PATCH] boot/salix.js deprecated --- front/core/lib/module-loader.js | 2 +- loopback/common/models/schema.json | 5 ++--- loopback/server/boot/salix.js | 9 --------- 3 files changed, 3 insertions(+), 13 deletions(-) delete mode 100644 loopback/server/boot/salix.js diff --git a/front/core/lib/module-loader.js b/front/core/lib/module-loader.js index 18f0a3ea3..c48e7d93d 100644 --- a/front/core/lib/module-loader.js +++ b/front/core/lib/module-loader.js @@ -11,7 +11,7 @@ export function factory($http, $window, $ocLazyLoad, $translatePartialLoader, $t this.loaded = {}; this.imports = {}; this.moduleImport = moduleImport; - this.modelInfo = $http.get(`modelInfo`) + this.modelInfo = $http.get(`Schemas/modelInfo`) .then(json => { this.onModelInfoReady(json); this.modelInfo = true; diff --git a/loopback/common/models/schema.json b/loopback/common/models/schema.json index face506ff..1bdf0fcf7 100644 --- a/loopback/common/models/schema.json +++ b/loopback/common/models/schema.json @@ -3,11 +3,10 @@ "base": "PersistedModel", "acls": [ { - "property": "validations", - "accessType": "EXECUTE", + "property": "modelInfo", "principalType": "ROLE", "principalId": "$everyone", "permission": "ALLOW" } ] -} +} \ No newline at end of file diff --git a/loopback/server/boot/salix.js b/loopback/server/boot/salix.js deleted file mode 100644 index 018389e40..000000000 --- a/loopback/server/boot/salix.js +++ /dev/null @@ -1,9 +0,0 @@ -module.exports = function(app) { - // FIXME: Fix until the original can be used - app.get('/api/modelInfo', function(req, res) { - app.models.Schema.modelInfo({req}).then(json => { - res.set('Content-Type', 'application/json'); - res.send(JSON.stringify(json)); - }); - }); -};