fix: handle both /transactions and /_matrix/app/v1

This commit is contained in:
əlemi 2024-04-09 13:14:36 +02:00
parent 387d5a25bc
commit b021ae5941

View file

@ -44,7 +44,8 @@ class AppService:
self.logger = logger if logger is not None else logging.getLogger(__file__) self.logger = logger if logger is not None else logging.getLogger(__file__)
self._app.add_routes([ 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: async def _handler(self, request: web.Request) -> web.Response: