boot/salix.js deprecated
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Carlos Jimenez Ruiz 2020-05-21 09:06:02 +02:00
parent 1892447b60
commit d299f455d6
3 changed files with 3 additions and 13 deletions

View File

@ -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;

View File

@ -3,8 +3,7 @@
"base": "PersistedModel",
"acls": [
{
"property": "validations",
"accessType": "EXECUTE",
"property": "modelInfo",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"

View File

@ -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));
});
});
};