mirror of
https://github.com/go-gitea/gitea
synced 2025-07-14 14:37:20 +00:00
@ -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())
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user