Browse Source

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

Fixed a little mistake when you deleting user secrets via the API. Found
it when working on #27725.
It should be backported to 1.21 I think.
tags/v1.22.0-rc0
Jean-Baptiste Gomond 7 months ago
parent
commit
641e8165c7
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      routers/api/v1/api.go

+ 1
- 1
routers/api/v1/api.go View File

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

Loading…
Cancel
Save