mirror of
https://github.com/ansible/awx.git
synced 2026-03-24 12:25:01 -02:30
Merge pull request #8125 from jakemcdermott/fix-api-urls
Fix malformed urls Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
@@ -25,7 +25,7 @@ class JobTemplates extends SchedulesMixin(
|
|||||||
}
|
}
|
||||||
|
|
||||||
readTemplateOptions(id) {
|
readTemplateOptions(id) {
|
||||||
return this.http.options(`${this.baseUrl}/${id}/`);
|
return this.http.options(`${this.baseUrl}${id}/`);
|
||||||
}
|
}
|
||||||
|
|
||||||
readLaunch(id) {
|
readLaunch(id) {
|
||||||
|
|||||||
@@ -7,14 +7,14 @@ class Roles extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
disassociateUserRole(roleId, userId) {
|
disassociateUserRole(roleId, userId) {
|
||||||
return this.http.post(`${this.baseUrl}/${roleId}/users/`, {
|
return this.http.post(`${this.baseUrl}${roleId}/users/`, {
|
||||||
disassociate: true,
|
disassociate: true,
|
||||||
id: userId,
|
id: userId,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
disassociateTeamRole(roleId, teamId) {
|
disassociateTeamRole(roleId, teamId) {
|
||||||
return this.http.post(`${this.baseUrl}/${roleId}/teams/`, {
|
return this.http.post(`${this.baseUrl}${roleId}/teams/`, {
|
||||||
disassociate: true,
|
disassociate: true,
|
||||||
id: teamId,
|
id: teamId,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class WorkflowJobTemplates extends SchedulesMixin(NotificationsMixin(Base)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
readWorkflowJobTemplateOptions(id) {
|
readWorkflowJobTemplateOptions(id) {
|
||||||
return this.http.options(`${this.baseUrl}/${id}/`);
|
return this.http.options(`${this.baseUrl}${id}/`);
|
||||||
}
|
}
|
||||||
|
|
||||||
updateWebhookKey(id) {
|
updateWebhookKey(id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user