From ea54afb1c368d25960a359096739cebe8edd5aa9 Mon Sep 17 00:00:00 2001 From: Jorik Schellekens Date: Fri, 23 Aug 2019 18:01:11 +0100 Subject: some better routing --- synapse_topology/server/server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'synapse_topology/server/server.py') 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( -- cgit 1.5.1