From e5065da88855bdbbbcea20eccaa16ce8344ab36d Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Sat, 3 Oct 2015 16:57:24 -0700 Subject: [PATCH] re-added `/api/hook` for gitlab --- router/router.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/router/router.go b/router/router.go index 8740278a..9fcbc26b 100644 --- a/router/router.go +++ b/router/router.go @@ -114,10 +114,8 @@ func Load(middleware ...gin.HandlerFunc) http.Handler { badges.GET("/cc.xml", controller.GetCC) } - hook := e.Group("/hook") - { - hook.POST("", controller.PostHook) - } + e.POST("/hook", controller.PostHook) + e.POST("/api/hook", controller.PostHook) stream := e.Group("/api/stream") {