1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-14 14:37:20 +00:00

Add ability to delete a token (#4235)

Fix #4234
This commit is contained in:
techknowlogick
2018-07-06 21:54:30 -04:00
committed by GitHub
parent 1675fc4301
commit ab55ca7ebd
7 changed files with 138 additions and 1 deletions

View File

@ -302,6 +302,7 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Group("/tokens", func() {
m.Combo("").Get(user.ListAccessTokens).
Post(bind(api.CreateAccessTokenOption{}), user.CreateAccessToken)
m.Combo("/:id").Delete(user.DeleteAccessToken)
}, reqBasicAuth())
})
})