aboutsummaryrefslogtreecommitdiff
path: root/roomserver/roomserver.go
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-05-18 10:56:43 +0100
committerGitHub <noreply@github.com>2020-05-18 10:56:43 +0100
commitdce4f436f77b71155483a47a6ad14da5c0ae5d6a (patch)
tree8a6202e52790878bdcd5e7f12205d2d179f86ac5 /roomserver/roomserver.go
parentbfb954519bdf172451d999ac4c654b3d15eff124 (diff)
Add -api flag to monolith (#1044)
* Add flag for enabling HTTP APIs in monolith mode * Flag -api * Only start HTTP APIs if needed
Diffstat (limited to 'roomserver/roomserver.go')
-rw-r--r--roomserver/roomserver.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/roomserver/roomserver.go b/roomserver/roomserver.go
index 450da5bb..aa5d223e 100644
--- a/roomserver/roomserver.go
+++ b/roomserver/roomserver.go
@@ -51,7 +51,9 @@ func SetupRoomServerComponent(
KeyRing: keyRing,
}
- internalAPI.SetupHTTP(http.DefaultServeMux)
+ if base.EnableHTTPAPIs {
+ internalAPI.SetupHTTP(http.DefaultServeMux)
+ }
return &internalAPI
}