summary refs log tree commit diff
path: root/synapse/app
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2018-12-11 16:24:06 +0100
committerGitHub <noreply@github.com>2018-12-11 16:24:06 +0100
commit95c1f6500b2b1d98570a2ebc52f29c0c12ef2709 (patch)
tree014cfa94ceeaaa366534028819eb7cf1df536e29 /synapse/app
parentMerge pull request #4291 from matrix-org/rav/disable_pager_in_ci (diff)
parentMerge branch 'rav/disable_pager_in_ci' into rav/welcome_page (diff)
downloadsynapse-95c1f6500b2b1d98570a2ebc52f29c0c12ef2709.tar.xz
Merge pull request #4289 from matrix-org/rav/welcome_page
Add a welcome page to the static resources
Diffstat (limited to 'synapse/app')
-rwxr-xr-xsynapse/app/homeserver.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py
index 3e4dea2f19..e433c66558 100755
--- a/synapse/app/homeserver.py
+++ b/synapse/app/homeserver.py
@@ -137,8 +137,11 @@ class SynapseHomeServer(HomeServer):
             handler = handler_cls(config, module_api)
             resources[path] = AdditionalResource(self, handler.handle_request)
 
+        # try to find something useful to redirect '/' to
         if WEB_CLIENT_PREFIX in resources:
             root_resource = RootRedirect(WEB_CLIENT_PREFIX)
+        elif STATIC_PREFIX in resources:
+            root_resource = RootRedirect(STATIC_PREFIX)
         else:
             root_resource = NoResource()