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:
softwarefactory-project-zuul[bot] 2020-09-11 15:53:39 +00:00 committed by GitHub
commit 61c4c5292c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@ class JobTemplates extends SchedulesMixin(
}
readTemplateOptions(id) {
return this.http.options(`${this.baseUrl}/${id}/`);
return this.http.options(`${this.baseUrl}${id}/`);
}
readLaunch(id) {

View File

@ -7,14 +7,14 @@ class Roles extends Base {
}
disassociateUserRole(roleId, userId) {
return this.http.post(`${this.baseUrl}/${roleId}/users/`, {
return this.http.post(`${this.baseUrl}${roleId}/users/`, {
disassociate: true,
id: userId,
});
}
disassociateTeamRole(roleId, teamId) {
return this.http.post(`${this.baseUrl}/${roleId}/teams/`, {
return this.http.post(`${this.baseUrl}${roleId}/teams/`, {
disassociate: true,
id: teamId,
});

View File

@ -13,7 +13,7 @@ class WorkflowJobTemplates extends SchedulesMixin(NotificationsMixin(Base)) {
}
readWorkflowJobTemplateOptions(id) {
return this.http.options(`${this.baseUrl}/${id}/`);
return this.http.options(`${this.baseUrl}${id}/`);
}
updateWebhookKey(id) {