From 6701375e671b6baea257e2320a02c890952efe75 Mon Sep 17 00:00:00 2001 From: Christopher Homberger Date: Mon, 17 Mar 2025 19:59:01 +0100 Subject: [PATCH] add routes --- routers/api/v1/api.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index a89fb6303a..2023c94e6a 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -1244,8 +1244,10 @@ func Routes() *web.Router { m.Group("/actions", func() { m.Get("/tasks", repo.ListActionTasks) m.Get("/runs", repo.GetWorkflowRuns) + m.Get("/runs/{run}", repo.GetWorkflowRun) m.Get("/runs/{run}/jobs", repo.GetWorkflowJobs) m.Get("/runs/{run}/artifacts", repo.GetArtifactsOfRun) + m.Get("/jobs/{job_id}", repo.GetWorkflowJob) m.Get("/artifacts", repo.GetArtifacts) m.Group("/artifacts/{artifact_id}", func() { m.Get("", repo.GetArtifact)