From b122381e87577ddfc12b792a3de9121ea830d50e Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 16 Aug 2017 07:17:57 -0500 Subject: PLT-1649: add response_url support for custom slash commands (#6739) * add response_url support for custom slash commands * pr suggestions * pr update / suggestion * test fix --- api/webhook.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'api') diff --git a/api/webhook.go b/api/webhook.go index c17b5bc56..9750b71a0 100644 --- a/api/webhook.go +++ b/api/webhook.go @@ -32,8 +32,7 @@ func InitWebhook() { BaseRoutes.Hooks.Handle("/{id:[A-Za-z0-9]+}", ApiAppHandler(incomingWebhook)).Methods("POST") // Old route. Remove eventually. - mr := app.Srv.Router - mr.Handle("/hooks/{id:[A-Za-z0-9]+}", ApiAppHandler(incomingWebhook)).Methods("POST") + BaseRoutes.Root.Handle("/hooks/{id:[A-Za-z0-9]+}", ApiAppHandler(incomingWebhook)).Methods("POST") } func createIncomingHook(c *Context, w http.ResponseWriter, r *http.Request) { -- cgit v1.2.3-1-g7c22