aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/api.go
diff options
context:
space:
mode:
authorJean-Baptiste Gomond <dev@jbgomond.com>2023-10-29 13:19:57 +0100
committerGitHub <noreply@github.com>2023-10-29 13:19:57 +0100
commit641e8165c7ebcebe7a323d515e1409ca9926a6c2 (patch)
treedb966c3e144edd643332ffed396312a9b4eba9dd /routers/api/v1/api.go
parent3c78cb832d9b12b5071a8ffaf30d955c240f4920 (diff)
downloadgitea-641e8165c7ebcebe7a323d515e1409ca9926a6c2.tar.gz
gitea-641e8165c7ebcebe7a323d515e1409ca9926a6c2.zip
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.
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r--routers/api/v1/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go
index 53ae8c4d01..61658d213b 100644
--- a/routers/api/v1/api.go
+++ b/routers/api/v1/api.go
@@ -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)