fixed action run stop api
This commit is contained in:
parent
31c339fd1d
commit
6f0092b14c
|
|
@ -137,9 +137,9 @@ func Routers() *web.Route {
|
|||
m.Post("/enable", reqAdmin(), actions.EnableWorkflowFile)
|
||||
m.Post("/runs/{run}/jobs/{job}", context.ReferencesGitRepo(), bind(actions.ViewRequest{}), actions.ListJobs)
|
||||
m.Post("/runs/{run}/jobs/{job}/rerun", reqRepoWriter(unit_model.TypeActions), actions.Rerun)
|
||||
m.Post("/runs/{run}/jobs/{job}/cancel", reqRepoWriter(unit_model.TypeActions), actions.Cancel)
|
||||
m.Get("/runs/{run}/jobs/{job}/logs", actions.Logs)
|
||||
m.Post("/runs/{run}/rerun", reqRepoWriter(unit_model.TypeActions), actions.Rerun)
|
||||
m.Post("/runs/{run}/cancel", reqRepoWriter(unit_model.TypeActions), actions.Cancel)
|
||||
m.Post("/runs", context.ReferencesGitRepo(), reqRepoWriter(unit_model.TypeActions), actions.Run)
|
||||
}, reqRepoReader(unit_model.TypeActions))
|
||||
m.Post("/transfer", reqOwner(), bind(gitea_api.TransferRepoOption{}), repo.Transfer)
|
||||
|
|
|
|||
Loading…
Reference in New Issue