From 8fffb0616866cfe7a293b457d8703724666374cb Mon Sep 17 00:00:00 2001 From: Jonas Franz Date: Sat, 9 Mar 2019 17:29:58 +0100 Subject: Add regenerate secret feature for oauth2 (#6291) * Add regenerate secret functionality * Fix lint --- routers/routes/routes.go | 1 + 1 file changed, 1 insertion(+) (limited to 'routers/routes/routes.go') diff --git a/routers/routes/routes.go b/routers/routes/routes.go index f2fd96c3d3..1e98d3216a 100644 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -302,6 +302,7 @@ func RegisterRoutes(m *macaron.Macaron) { m.Group("/applications/oauth2", func() { m.Get("/:id", userSetting.OAuth2ApplicationShow) m.Post("/:id", bindIgnErr(auth.EditOAuth2ApplicationForm{}), userSetting.OAuthApplicationsEdit) + m.Post("/:id/regenerate_secret", userSetting.OAuthApplicationsRegenerateSecret) m.Post("", bindIgnErr(auth.EditOAuth2ApplicationForm{}), userSetting.OAuthApplicationsPost) m.Post("/delete", userSetting.DeleteOAuth2Application) }) -- cgit v1.2.3