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),