1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-10-20 19:52:04 +00:00

Use Get but not Post to get actions artifacts (#29734) (#29737)

backport #29734

(cherry picked from commit 8c31456a879797e7247d2cbf65b53fd16939c91d)
This commit is contained in:
Lunny Xiao 2024-03-13 00:31:45 +08:00 committed by Earl Warren
parent 4543d70216
commit 02ac89c01d
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 3 additions and 3 deletions

View file

@ -1369,7 +1369,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)
})