1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01:00

premium api

This commit is contained in:
Kyle Spearrin 2018-06-28 23:05:25 -04:00
parent 3aebe1a09a
commit 93edd272dd
2 changed files with 5 additions and 0 deletions

View File

@ -62,6 +62,7 @@ export abstract class ApiService {
getAccountRevisionDate: () => Promise<number>;
postPasswordHint: (request: PasswordHintRequest) => Promise<any>;
postRegister: (request: RegisterRequest) => Promise<any>;
postPremium: (data: FormData) => Promise<any>;
postFolder: (request: FolderRequest) => Promise<FolderResponse>;
putFolder: (id: string, request: FolderRequest) => Promise<FolderResponse>;
deleteFolder: (id: string) => Promise<any>;

View File

@ -184,6 +184,10 @@ export class ApiService implements ApiServiceAbstraction {
return this.send('POST', '/accounts/register', request, false, false);
}
postPremium(data: FormData): Promise<any> {
return this.send('POST', '/accounts/premium', data, true, true);
}
// Folder APIs
async postFolder(request: FolderRequest): Promise<FolderResponse> {