diff --git a/web/src/lib/api/index.ts b/web/src/lib/api/index.ts index 922094713..c310a1ec2 100644 --- a/web/src/lib/api/index.ts +++ b/web/src/lib/api/index.ts @@ -59,7 +59,7 @@ export default class WoodpeckerClient extends ApiClient { } createPipeline(owner: string, repo: string, options: BuildOptions): Promise { - return this._post(`/api/repos/${owner}/${repo}/pipeline`, options) as Promise; + return this._post(`/api/repos/${owner}/${repo}/pipelines`, options) as Promise; } getPipelineList(owner: string, repo: string, opts?: Record): Promise {