Add button to download tgz backups

This commit is contained in:
Johannes Zellner
2022-11-04 10:18:12 +01:00
parent 338c89aa7f
commit e0900aeba1
4 changed files with 11 additions and 1 deletions

View File

@@ -1545,6 +1545,10 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.getAppBackupDownloadLink = function (appId, backupId) {
return client.apiOrigin + '/api/v1/apps/' + appId + '/backups/' + backupId + '/download?access_token=' + token;
};
Client.prototype.getServices = function (callback) {
get('/api/v1/services', null, function (error, data, status) {
if (error) return callback(error);