Merge pull request #141 from AlexSCorey/48-deleteOrgs

Add alert for org. delete.
This commit is contained in:
Alex Corey
2019-04-05 12:39:38 -04:00
committed by GitHub
8 changed files with 361 additions and 60 deletions

View File

@@ -56,6 +56,11 @@ class APIClient {
return this.http.get(API_CONFIG);
}
destroyOrganization (id) {
const endpoint = `${API_ORGANIZATIONS}${id}/`;
return (this.http.delete(endpoint));
}
getOrganizations (params = {}) {
return this.http.get(API_ORGANIZATIONS, { params });
}