diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index 53ae8c4d0..61658d213 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)