Slack endpoint.

This commit is contained in:
2021-02-04 02:29:28 -06:00
parent fd947ac105
commit c4095d9baf
2 changed files with 5 additions and 0 deletions

View File

@ -32,6 +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)
srv := http.Server{
Addr: fmt.Sprintf(":%d", conf.Port),