diff options
author | Ethan Koenig <ethantkoenig@gmail.com> | 2017-11-19 23:00:53 -0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-11-20 15:00:53 +0800 |
commit | 876bafb7ef8570e62de026b999acd05556fceaee (patch) | |
tree | e6aae270ee1f30327af74d5b15b03d907d39c0be /routers/api/v1/repo/hook.go | |
parent | 061f65ff297d3c2bb76776af999f80a891a74933 (diff) | |
download | gitea-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.go | 2 |
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 |