summary refs log tree commit diff
path: root/synapse/app
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-01-23 10:37:38 +0000
committerMark Haines <mark.haines@matrix.org>2015-01-23 10:37:38 +0000
commit7256def8e43bf5ab982cb7e785fb1334a1ef4ab8 (patch)
tree44c5eb1754851f7467bb1ec4a0ee7dee7524af17 /synapse/app
parentMerge pull request #30 from matrix-org/client_api_restructure (diff)
downloadsynapse-7256def8e43bf5ab982cb7e785fb1334a1ef4ab8.tar.xz
Merge rest servlets into the client json resource object
Diffstat (limited to 'synapse/app')
-rwxr-xr-xsynapse/app/homeserver.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py
index cd24bbdc79..fabe8ddacb 100755
--- a/synapse/app/homeserver.py
+++ b/synapse/app/homeserver.py
@@ -37,6 +37,7 @@ from synapse.api.urls import (
 from synapse.config.homeserver import HomeServerConfig
 from synapse.crypto import context_factory
 from synapse.util.logcontext import LoggingContext
+from synapse.rest.client.v1 import ClientV1RestResource
 
 from daemonize import Daemonize
 import twisted.manhole.telnet
@@ -59,7 +60,7 @@ class SynapseHomeServer(HomeServer):
         return MatrixFederationHttpClient(self)
 
     def build_resource_for_client(self):
-        return JsonResource()
+        return ClientV1RestResource(self)
 
     def build_resource_for_federation(self):
         return JsonResource()
@@ -224,8 +225,6 @@ def setup():
         content_addr=config.content_addr,
     )
 
-    hs.register_servlets()
-
     hs.create_resource_tree(
         web_client=config.webclient,
         redirect_root_to_web_client=True,