Slack endpoint.

This commit is contained in:
Matt Burchett 2021-02-04 02:32:46 -06:00
parent 36304c9a7b
commit d8c2311f60

View File

@ -32,7 +32,7 @@ func Run(info *router.BuildInfo) error {
router := router.NewRouter(info) router := router.NewRouter(info)
router.HandleWithMetrics("/generic/{matrixRoom}/{matrixUser}/{matrixPassword}", generic.Handle(conf)).Methods(http.MethodPost) 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{ srv := http.Server{
Addr: fmt.Sprintf(":%d", conf.Port), Addr: fmt.Sprintf(":%d", conf.Port),