mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 01:23:49 +00:00
tokens, last build
This commit is contained in:
@@ -57,3 +57,20 @@ func GetUserRepos(c *gin.Context) {
|
||||
c.JSON(200, &repos)
|
||||
}
|
||||
}
|
||||
|
||||
// GetUserTokens accepts a request to get the currently
|
||||
// authenticated user's token list from the datastore,
|
||||
// encoded and returned in JSON format.
|
||||
//
|
||||
// GET /api/user/tokens
|
||||
//
|
||||
func GetUserTokens(c *gin.Context) {
|
||||
// ds := ToDatastore(c)
|
||||
// me := ToUser(c)
|
||||
// tokens, err := ds.GetUserTokens(me.Login)
|
||||
// if err != nil {
|
||||
// c.Fail(400, err)
|
||||
// } else {
|
||||
// c.JSON(200, &repos)
|
||||
// }
|
||||
}
|
||||
|
Reference in New Issue
Block a user