Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Duplicati/Server/webroot/ngax/scripts/services/AppService.js')
-rw-r--r--Duplicati/Server/webroot/ngax/scripts/services/AppService.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/Duplicati/Server/webroot/ngax/scripts/services/AppService.js b/Duplicati/Server/webroot/ngax/scripts/services/AppService.js
index 24d539134..54ffbd112 100644
--- a/Duplicati/Server/webroot/ngax/scripts/services/AppService.js
+++ b/Duplicati/Server/webroot/ngax/scripts/services/AppService.js
@@ -1,5 +1,5 @@
backupApp.service('AppService', function($http, $cookies, $q, $cookies, DialogService, appConfig) {
- this.apiurl = '/api/v1';
+ this.apiurl = '../api/v1';
this.proxy_url = null;
var self = this;
@@ -116,4 +116,10 @@ backupApp.service('AppService', function($http, $cookies, $q, $cookies, DialogSe
return rurl;
};
+
+ this.log_out = function() {
+ var rurl = '/logout.cgi';
+
+ return installResponseHook($http.get(this.proxy_url == null ? rurl : this.proxy_url, setupConfig('GET', {}, null, rurl)));
+ };
});