From cd14f072a1afe47b83fbf0bf3bbdcfe6a3380bd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20L=C3=B6sche?= Date: Tue, 26 Sep 2023 19:09:58 +0200 Subject: [PATCH] [resotolib][feat] Allow mounting additional apps (#1784) --- resotolib/resotolib/web/__init__.py | 3 +++ 1 file changed, 3 insertions(+) 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)