tokens, last build

This commit is contained in:
Brad Rydzewski
2015-04-10 22:22:55 -07:00
parent 840ea6d595
commit 087f92f41f
13 changed files with 127 additions and 58 deletions

View File

@@ -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)
// }
}