Skip to content

Commit

Permalink
fix endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
arjxn-py committed Dec 4, 2024
1 parent 6c7f2e4 commit 667c88b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions jupytercad_freecad/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 667c88b

Please sign in to comment.