diff options
author | Unknwon <u@gogs.io> | 2015-08-19 05:47:45 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-19 05:47:45 +0800 |
commit | 54b52de6eed4eb2f76620c48189ba3167c290121 (patch) | |
tree | 063dcac1aef519a8f6ce8f6099a9d9c966cee2a1 /cmd | |
parent | 47ac579f092cef9128fa0c74798ecaffa2c888f9 (diff) | |
download | gitea-54b52de6eed4eb2f76620c48189ba3167c290121.tar.gz gitea-54b52de6eed4eb2f76620c48189ba3167c290121.zip |
minor fix on API response
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/web.go b/cmd/web.go index 386fae74f8..ae4403c0ca 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -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()) }) }) |