summaryrefslogtreecommitdiffstats
path: root/routers/routes/routes.go
diff options
context:
space:
mode:
authorJonas Franz <info@jonasfranz.software>2019-03-09 17:29:58 +0100
committerGitHub <noreply@github.com>2019-03-09 17:29:58 +0100
commit8fffb0616866cfe7a293b457d8703724666374cb (patch)
tree08e286ed4aeff36079b81eac5e58be4e5e789720 /routers/routes/routes.go
parent8211e01d9e6f283077c5692b62d7ea81e0a60f9e (diff)
downloadgitea-8fffb0616866cfe7a293b457d8703724666374cb.tar.gz
gitea-8fffb0616866cfe7a293b457d8703724666374cb.zip
Add regenerate secret feature for oauth2 (#6291)
* Add regenerate secret functionality * Fix lint
Diffstat (limited to 'routers/routes/routes.go')
-rw-r--r--routers/routes/routes.go1
1 files changed, 1 insertions, 0 deletions
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)
})