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

Fix API status code for hook creation (#2814)

* Fix API status code for hook creation

* Named constants for response statuses
This commit is contained in:
Ethan Koenig
2017-11-19 23:00:53 -08:00
committed by Lunny Xiao
parent 061f65ff29
commit 876bafb7ef
3 changed files with 5 additions and 4 deletions

View File

@@ -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