summary refs log tree commit diff
path: root/synapse/rest/admin/username_available.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/rest/admin/username_available.py')
-rw-r--r--synapse/rest/admin/username_available.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/admin/username_available.py b/synapse/rest/admin/username_available.py
index 2bf1472967..5353dc3682 100644
--- a/synapse/rest/admin/username_available.py
+++ b/synapse/rest/admin/username_available.py
@@ -37,7 +37,7 @@ class UsernameAvailableRestServlet(RestServlet):
         }
     """
 
-    PATTERNS = admin_patterns("/username_available")
+    PATTERNS = admin_patterns("/username_available$")
 
     def __init__(self, hs: "HomeServer"):
         self.auth = hs.get_auth()