summary refs log tree commit diff
diff options
context:
space:
mode:
authorJorik Schellekens <joriks@matrix.org>2019-08-23 18:01:11 +0100
committerJorik Schellekens <joriks@matrix.org>2019-08-28 15:59:54 +0100
commitea54afb1c368d25960a359096739cebe8edd5aa9 (patch)
tree87d0d3d9f359999bfb23278ef1819d801c85a4a2
parentIt's an OO language. Use it like one. (diff)
downloadsynapse-ea54afb1c368d25960a359096739cebe8edd5aa9.tar.xz
some better routing
-rw-r--r--synapse_topology/server/server.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse_topology/server/server.py b/synapse_topology/server/server.py
index 8b31a41cfc..dd3d3ce4b3 100644
--- a/synapse_topology/server/server.py
+++ b/synapse_topology/server/server.py
@@ -30,12 +30,14 @@ class Server:
     def __init__(self, model):
         self.model = model
 
-    @app.route("/topology_webui/", branch=True)
     def server_webui(self, request):
         client_path = abspath(join(dirname(abspath(__file__)), "../webui/dist/"))
         print(client_path)
         return File(client_path)
 
+    app.route("/topology_webui", branch=True)(server_webui)
+    app.route("/topology_webui/", branch=True)(server_webui)
+
     @app.route("/setup", methods=["GET"])
     def get_config_setup(self, request):
         return json.dumps(