1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-25 16:59:17 +01:00

org delete apis

This commit is contained in:
Kyle Spearrin 2018-07-16 12:41:54 -04:00
parent 3649e2fffe
commit b2c700ad28
2 changed files with 3 additions and 3 deletions

View File

@ -198,7 +198,7 @@ export abstract class ApiService {
putOrganization: (id: string, request: OrganizationUpdateRequest) => Promise<OrganizationResponse>;
postLeaveOrganization: (id: string) => Promise<any>;
postOrganizationLicense: (data: FormData) => Promise<OrganizationResponse>;
deleteOrganization: (id: string) => Promise<any>;
postDeleteOrganization: (id: string, request: PasswordVerificationRequest) => Promise<any>;
getEvents: (start: string, end: string, token: string) => Promise<ListResponse<EventResponse>>;
getEventsCipher: (id: string, start: string, end: string, token: string) => Promise<ListResponse<EventResponse>>;

View File

@ -651,8 +651,8 @@ export class ApiService implements ApiServiceAbstraction {
return new OrganizationResponse(r);
}
deleteOrganization(id: string): Promise<any> {
return this.send('DELETE', '/organizations/' + id, null, true, false);
postDeleteOrganization(id: string, request: PasswordVerificationRequest): Promise<any> {
return this.send('POST', '/organizations/' + id + '/delete', request, true, false);
}
// Event APIs