1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-11 18:24:27 +00:00

Update routers/api/v1/api.go

Co-authored-by: yp05327 <576951401@qq.com>
This commit is contained in:
Chester 2023-08-23 09:42:07 -04:00 committed by GitHub
parent 8f787dfe66
commit 246873acc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -996,7 +996,7 @@ func Routes() *web.Route {
}, reqRepoReader(unit.TypeCode), context.ReferencesGitRepo(true))
m.Group("/actions", func() {
m.Get("/tasks", repo.ListActionTasks)
}, reqRepoReader(unit.TypeCode), context.ReferencesGitRepo(true))
}, reqRepoReader(unit.TypeActions), context.ReferencesGitRepo(true))
m.Group("/keys", func() {
m.Combo("").Get(repo.ListDeployKeys).
Post(bind(api.CreateKeyOption{}), repo.CreateDeployKey)