1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 06:43:35 +00:00

more services and async callthroughs for vault list/add

This commit is contained in:
Kyle Spearrin
2016-09-04 00:34:24 -04:00
parent 32f4ab4987
commit 8f0a24b1b9
14 changed files with 303 additions and 166 deletions

View File

@@ -1,9 +1,11 @@
function ApiService(tokenService) {
this.baseUrl = 'https://api.bitwarden.com';
this.tokenService = tokenService;
initApiService();
};
!function () {
function initApiService() {
// Auth APIs
ApiService.prototype.postToken = function (tokenRequest, success, error) {
@@ -235,4 +237,4 @@
function handleError(errorCallback, jqXHR, textStatus, errorThrown) {
errorCallback(new ErrorResponse(jqXHR));
}
}();
};