aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2024-03-12 18:53:53 +0800
committerGitHub <noreply@github.com>2024-03-12 11:53:53 +0100
commit171d3d9a3c891d107001094b9118d93b0b00c02c (patch)
treea4e4cffc7e9f62b792dbd92d47ee832f097ddfd7 /routers
parentd8bd6f34f09bc9a6602bebb33bdc9e1f255a0d7c (diff)
downloadgitea-171d3d9a3c891d107001094b9118d93b0b00c02c.tar.gz
gitea-171d3d9a3c891d107001094b9118d93b0b00c02c.zip
Use Get but not Post to get actions artifacts (#29734)
Diffstat (limited to 'routers')
-rw-r--r--routers/web/web.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/web.go b/routers/web/web.go
index 8710f6e3e5..fc1432873f 100644
--- a/routers/web/web.go
+++ b/routers/web/web.go
@@ -1374,7 +1374,7 @@ func registerRoutes(m *web.Route) {
})
m.Post("/cancel", reqRepoActionsWriter, actions.Cancel)
m.Post("/approve", reqRepoActionsWriter, actions.Approve)
- m.Post("/artifacts", actions.ArtifactsView)
+ m.Get("/artifacts", actions.ArtifactsView)
m.Get("/artifacts/{artifact_name}", actions.ArtifactsDownloadView)
m.Delete("/artifacts/{artifact_name}", actions.ArtifactsDeleteView)
m.Post("/rerun", reqRepoActionsWriter, actions.Rerun)