aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/repo/hook.go
diff options
context:
space:
mode:
authorEthan Koenig <ethantkoenig@gmail.com>2017-11-19 23:00:53 -0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-11-20 15:00:53 +0800
commit876bafb7ef8570e62de026b999acd05556fceaee (patch)
treee6aae270ee1f30327af74d5b15b03d907d39c0be /routers/api/v1/repo/hook.go
parent061f65ff297d3c2bb76776af999f80a891a74933 (diff)
downloadgitea-876bafb7ef8570e62de026b999acd05556fceaee.tar.gz
gitea-876bafb7ef8570e62de026b999acd05556fceaee.zip
Fix API status code for hook creation (#2814)
* Fix API status code for hook creation * Named constants for response statuses
Diffstat (limited to 'routers/api/v1/repo/hook.go')
-rw-r--r--routers/api/v1/repo/hook.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/hook.go b/routers/api/v1/repo/hook.go
index 2464cc7bd7..eb1742ac56 100644
--- a/routers/api/v1/repo/hook.go
+++ b/routers/api/v1/repo/hook.go
@@ -107,7 +107,7 @@ func CreateHook(ctx *context.APIContext, form api.CreateHookOption) {
// schema:
// "$ref": "#/definitions/CreateHookOption"
// responses:
- // "200":
+ // "201":
// "$ref": "#/responses/Hook"
if !utils.CheckCreateHookOption(ctx, &form) {
return