This commit is contained in:
techknowlogick 2018-06-21 12:42:30 -04:00 committed by GitHub
parent 9cae3ea4ee
commit f426f13c8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,9 +37,9 @@ func ListAccessTokens(ctx *context.APIContext) {
apiTokens := make([]*api.AccessToken, len(tokens))
for i := range tokens {
apiTokens[i] = &api.AccessToken{
ID: tokens[i].ID,
Name: tokens[i].Name,
Sha1: tokens[i].Sha1,
ID: tokens[i].ID,
}
}
ctx.JSON(200, &apiTokens)