Initial filemanager view

This commit is contained in:
Johannes Zellner
2020-07-08 17:30:37 +02:00
parent b86dff8601
commit 7c2ab4e5bd
4 changed files with 263 additions and 1 deletions

View File

@@ -2384,6 +2384,16 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
// FileManager API
Client.prototype.filesGet = function (appId, path, callback) {
get('/api/v1/apps/' + appId + '/files/' + path, null, function (error, data, status) {
if (error) return callback(error);
if (status !== 200) return callback(new ClientError(status, data));
callback(null, data);
});
};
client = new Client();
return client;
}]);