forked from gitea/gitea
1
0
Fork 0

Fix bad method call when deleting user secrets via API () ()

Backport  by @jbgomond

Fixed a little mistake when you deleting user secrets via the API. Found
it when working on .
It should be backported to 1.21 I think.

Co-authored-by: Jean-Baptiste Gomond <dev@jbgomond.com>
This commit is contained in:
Giteabot 2023-10-29 22:08:01 +08:00 committed by GitHub
parent 991c959110
commit 25bc3d562a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
routers/api/v1

View File

@ -960,7 +960,7 @@ func Routes() *web.Route {
m.Group("/actions/secrets", func() {
m.Combo("/{secretname}").
Put(bind(api.CreateOrUpdateSecretOption{}), user.CreateOrUpdateSecret).
Delete(repo.DeleteSecret)
Delete(user.DeleteSecret)
})
m.Get("/followers", user.ListMyFollowers)