From b021ae59411ee26c56c31d97a753844375fcd481 Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 9 Apr 2024 13:14:36 +0200 Subject: [PATCH] fix: handle both /transactions and /_matrix/app/v1 --- src/aioappsrv/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/aioappsrv/app.py b/src/aioappsrv/app.py index 9208f24..07c1975 100644 --- a/src/aioappsrv/app.py +++ b/src/aioappsrv/app.py @@ -44,7 +44,8 @@ class AppService: self.logger = logger if logger is not None else logging.getLogger(__file__) self._app.add_routes([ - web.put('/transactions/{transaction}', lambda req: self._handler(req)) + web.put('/transactions/{transaction}', lambda req: self._handler(req)), + web.put('/_matrix/app/v1/transactions/{transaction}', lambda req: self._handler(req)), ]) async def _handler(self, request: web.Request) -> web.Response: