1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

minor fix on API response

This commit is contained in:
Unknwon
2015-08-19 05:47:45 +08:00
parent 47ac579f09
commit 54b52de6ee
2 changed files with 7 additions and 2 deletions

View File

@@ -222,7 +222,8 @@ func runWeb(ctx *cli.Context) {
m.Get("", v1.GetUserInfo)
m.Group("/tokens", func() {
m.Combo("").Get(v1.ListAccessTokens).Post(bind(v1.CreateAccessTokenForm{}), v1.CreateAccessToken)
m.Combo("").Get(v1.ListAccessTokens).
Post(bind(v1.CreateAccessTokenForm{}), v1.CreateAccessToken)
}, middleware.ApiReqBasicAuth())
})
})