diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index a55fc58f2..b5619c6fb 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -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)