mirror of
https://github.com/maubot/maubot
synced 2025-09-05 02:30:38 +00:00
Add web app support to standalone mode
This commit is contained in:
parent
fc516d78b7
commit
8b1685a9ea
4 changed files with 51 additions and 7 deletions
|
@ -54,7 +54,7 @@ class MaubotServer:
|
|||
|
||||
self.runner = web.AppRunner(self.app, access_log_class=AccessLogger)
|
||||
|
||||
async def handle_plugin_path(self, request: web.Request) -> web.Response:
|
||||
async def handle_plugin_path(self, request: web.Request) -> web.StreamResponse:
|
||||
for path, app in self.plugin_routes.items():
|
||||
if request.path.startswith(path):
|
||||
request = request.clone(rel_url=request.rel_url
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue