1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

api for leaving organization

This commit is contained in:
Kyle Spearrin
2018-07-04 09:54:14 -04:00
parent 236c00475d
commit 278b4402da
3 changed files with 6 additions and 1 deletions

View File

@@ -429,6 +429,10 @@ export class ApiService implements ApiServiceAbstraction {
return new OrganizationResponse(r);
}
postLeaveOrganization(id: string): Promise<any> {
return this.send('POST', '/organizations/' + id + '/leave', null, true, false);
}
async postOrganizationLicense(data: FormData): Promise<OrganizationResponse> {
const r = await this.send('POST', '/organizations/license', data, true, true);
return new OrganizationResponse(r);