From 667c88b289d28c302389baeb6bebedb38cf0e69a Mon Sep 17 00:00:00 2001 From: arjxn-py Date: Wed, 4 Dec 2024 19:56:29 +0530 Subject: [PATCH] fix endpoint --- jupytercad_freecad/handlers.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/jupytercad_freecad/handlers.py b/jupytercad_freecad/handlers.py index 4115990..3c329bf 100644 --- a/jupytercad_freecad/handlers.py +++ b/jupytercad_freecad/handlers.py @@ -80,9 +80,7 @@ def setup_handlers(web_app): host_pattern = ".*$" base_url = web_app.settings["base_url"] - route_pattern = url_path_join(base_url, "jupytercad_freecad", "backend-check") - handlers = [(route_pattern, BackendCheckHandler)] - route_pattern = url_path_join(base_url, "jupytercad_freecad", "export-jcad") - handlers = [(route_pattern, JCadExportHandler)] + handlers = [(url_path_join(base_url, "jupytercad_freecad", "backend-check"), BackendCheckHandler), + (url_path_join(base_url, "jupytercad_freecad", "export-jcad"), JCadExportHandler)] web_app.add_handlers(host_pattern, handlers)