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:
@@ -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));
|
||||
}
|
||||
}();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user