diff --git a/resotolib/resotolib/web/__init__.py b/resotolib/resotolib/web/__init__.py index 9d7997279b..98205ade11 100644 --- a/resotolib/resotolib/web/__init__.py +++ b/resotolib/resotolib/web/__init__.py @@ -78,3 +78,6 @@ def run(self) -> None: def shutdown(self) -> None: log.debug("Received request to shutdown http server threads") cherrypy.engine.exit() + + def mount(self, mountpoint: str, app: Any) -> None: + cherrypy.tree.mount(app, mountpoint, app.config)