From 3d8e04c04ffaeb6383e4de81f9be72b59f21c3cf Mon Sep 17 00:00:00 2001 From: Kirill Zaitsev Date: Thu, 2 Oct 2014 18:22:42 +0400 Subject: [PATCH] Use :host instead :hook, host is required by hook handler --- server/main.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server/main.go b/server/main.go index b58a593b..38fea57e 100644 --- a/server/main.go +++ b/server/main.go @@ -120,11 +120,12 @@ func main() { goji.Get("/api/stream/stdout/:id", handler.WsConsole) goji.Get("/api/stream/user", handler.WsUser) goji.Get("/api/auth/:host", handler.GetLogin) + goji.Get("/api/auth/:host", handler.GetLogin) goji.Get("/api/badge/:host/:owner/:name/status.svg", handler.GetBadge) goji.Get("/api/badge/:host/:owner/:name/cc.xml", handler.GetCC) - goji.Get("/api/hook/:hook", handler.PostHook) - goji.Put("/api/hook/:hook", handler.PostHook) - goji.Post("/api/hook/:hook", handler.PostHook) + goji.Get("/api/hook/:host", handler.PostHook) + goji.Put("/api/hook/:host", handler.PostHook) + goji.Post("/api/hook/:host", handler.PostHook) repos := web.New() repos.Use(middleware.SetRepo)