Expose the matrix APIs directly

This commit is contained in:
Mark Haines 2017-08-04 11:10:49 +01:00
parent fca28dce85
commit dc56c9d14a

View file

@ -84,9 +84,8 @@ func main() {
m.setupConsumers() m.setupConsumers()
m.setupAPIs() m.setupAPIs()
common.SetupHTTPAPI(http.DefaultServeMux, m.api) // Expose the matrix APIs directly rather than putting them under a /api path.
log.Fatal(http.ListenAndServe(*httpBindAddr, m.api))
log.Fatal(http.ListenAndServe(*httpBindAddr, nil))
} }
// A monolith contains all the dendrite components. // A monolith contains all the dendrite components.