diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2021-12-08 17:59:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-08 16:59:40 +0000 |
commit | 7ecaa3b976b04dc5b2c6786aa18845016b80dd01 (patch) | |
tree | b66e9caab3e56bbca80b2526322e92b616a292c0 /synapse/rest/admin/__init__.py | |
parent | Document the usage of refresh tokens. (#11427) (diff) | |
download | synapse-7ecaa3b976b04dc5b2c6786aa18845016b80dd01.tar.xz |
Clean up `synapse.rest.admin` (#11535)
Diffstat (limited to 'synapse/rest/admin/__init__.py')
-rw-r--r-- | synapse/rest/admin/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/admin/__init__.py b/synapse/rest/admin/__init__.py index c499afd4be..701c609c12 100644 --- a/synapse/rest/admin/__init__.py +++ b/synapse/rest/admin/__init__.py @@ -108,7 +108,7 @@ class VersionServlet(RestServlet): class PurgeHistoryRestServlet(RestServlet): PATTERNS = admin_patterns( - "/purge_history/(?P<room_id>[^/]*)(/(?P<event_id>[^/]+))?" + "/purge_history/(?P<room_id>[^/]*)(/(?P<event_id>[^/]*))?$" ) def __init__(self, hs: "HomeServer"): @@ -195,7 +195,7 @@ class PurgeHistoryRestServlet(RestServlet): class PurgeHistoryStatusRestServlet(RestServlet): - PATTERNS = admin_patterns("/purge_history_status/(?P<purge_id>[^/]+)") + PATTERNS = admin_patterns("/purge_history_status/(?P<purge_id>[^/]*)$") def __init__(self, hs: "HomeServer"): self.pagination_handler = hs.get_pagination_handler() |