forked from forgejo/forgejo
parent
1675fc4301
commit
ab55ca7ebd
7 changed files with 138 additions and 1 deletions
|
@ -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())
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue