mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-14 05:52:43 +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:
parent
061f65ff29
commit
876bafb7ef
3 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue