From 876bafb7ef8570e62de026b999acd05556fceaee Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Sun, 19 Nov 2017 23:00:53 -0800 Subject: Fix API status code for hook creation (#2814) * Fix API status code for hook creation * Named constants for response statuses --- routers/api/v1/repo/hook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/api/v1/repo/hook.go') 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 -- cgit v1.2.3