From d8c2311f6095bee88c57a91acf1297774a86597d Mon Sep 17 00:00:00 2001 From: Matt Burchett Date: Thu, 4 Feb 2021 02:32:46 -0600 Subject: [PATCH] Slack endpoint. --- pkg/server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/server/server.go b/pkg/server/server.go index d246c5e..201629f 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -32,7 +32,7 @@ func Run(info *router.BuildInfo) error { router := router.NewRouter(info) router.HandleWithMetrics("/generic/{matrixRoom}/{matrixUser}/{matrixPassword}", generic.Handle(conf)).Methods(http.MethodPost) - router.HandleWithMetrics("/slack/{matrixRoom}/{matrixUser}/{matrixPassword}", generic.Handle(conf)).Methods(http.MethodPost) + router.HandleWithMetrics("/slack/{matrixRoom}/{matrixUser}/{matrixPassword}", slack.Handle(conf)).Methods(http.MethodPost) srv := http.Server{ Addr: fmt.Sprintf(":%d", conf.Port),