Skip to content

Commit

Permalink
[resotolib][feat] Allow mounting additional apps (#1784)
Browse files Browse the repository at this point in the history
  • Loading branch information
lloesche authored Sep 26, 2023
1 parent 8afbdfa commit cd14f07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resotolib/resotolib/web/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit cd14f07

Please sign in to comment.