mirror of
https://gitee.com/gitea/gitea
synced 2025-11-02 23:50:26 +08: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