making the /generic/ endpoint respond with a message containing the response from Matrix.
This commit is contained in:
1 parent
1242858d84
commit
105657fc4b
2 files changed
+4
-5
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user