diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2024-03-13 00:31:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-12 17:31:45 +0100 |
commit | 8c31456a879797e7247d2cbf65b53fd16939c91d (patch) | |
tree | d204fc69e9e3eb6e5aad998766669954c54d4bb1 /routers | |
parent | 4bfc43ef8de7c5e42f9502aa23075ee5fe04b26b (diff) | |
download | gitea-8c31456a879797e7247d2cbf65b53fd16939c91d.tar.gz gitea-8c31456a879797e7247d2cbf65b53fd16939c91d.zip |
Use Get but not Post to get actions artifacts (#29734) (#29737)
backport #29734
Diffstat (limited to 'routers')
-rw-r--r-- | routers/web/web.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/web.go b/routers/web/web.go index 103c03f45a..d3749b7d29 100644 --- a/routers/web/web.go +++ b/routers/web/web.go @@ -1360,7 +1360,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.Post("/rerun", reqRepoActionsWriter, actions.Rerun) }) |