Respond to PR feedback.

This commit is contained in:
Kia Lam
2019-03-05 12:01:06 -05:00
parent 35ecd83214
commit 9f86fc2def
7 changed files with 101 additions and 135 deletions

View File

@@ -5,7 +5,6 @@ const API_V2 = `${API_ROOT}v2/`;
const API_CONFIG = `${API_V2}config/`;
const API_ORGANIZATIONS = `${API_V2}organizations/`;
const API_INSTANCE_GROUPS = `${API_V2}instance_groups/`;
const API_USERS = `${API_V2}users/`;
const LOGIN_CONTENT_TYPE = 'application/x-www-form-urlencoded';
@@ -130,12 +129,6 @@ class APIClient {
disassociateInstanceGroup (url, id) {
return this.http.post(url, { id, disassociate: true });
}
getUserRoles (id) {
const endpoint = `${API_USERS}${id}/roles/`;
return this.http.get(endpoint);
}
}
export default APIClient;