making the /generic/ endpoint respond with a message containing the response from Matrix.

This commit is contained in:
2021-02-04 01:26:46 -06:00
parent 1242858d84
commit 105657fc4b
2 changed files with 4 additions and 5 deletions

View File

@@ -24,9 +24,9 @@ func Handle(cfg config.Config) http.HandlerFunc {
log.Error().Err(err).Msg("An error has occurred")
}
matrix.PublishText(cfg, vars, reqBody, token)
resp := matrix.PublishText(cfg, vars, reqBody, token)
router.Respond(w, 200, nil)
router.Respond(w, 200, resp)
}
}