summary refs log tree commit diff
path: root/synapse/rest/client
diff options
context:
space:
mode:
authorJason Little <realtyem@gmail.com>2023-03-17 08:50:31 -0500
committerGitHub <noreply@github.com>2023-03-17 09:50:31 -0400
commit3d70cc393fb32235bbeb94a0b97691dff5531f4d (patch)
tree9625abc5bb76e661f261a8f988bcae1a9e7ab23a /synapse/rest/client
parentMake `configure_workers_and_start` script used in Complement tests compatible... (diff)
downloadsynapse-3d70cc393fb32235bbeb94a0b97691dff5531f4d.tar.xz
Load `/register/available` endpoint on workers (#15268)
Diffstat (limited to 'synapse/rest/client')
-rw-r--r--synapse/rest/client/register.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/register.py b/synapse/rest/client/register.py
index bce806f2bb..4adb5271d2 100644
--- a/synapse/rest/client/register.py
+++ b/synapse/rest/client/register.py
@@ -956,7 +956,7 @@ def register_servlets(hs: "HomeServer", http_server: HttpServer) -> None:
     if hs.config.worker.worker_app is None:
         EmailRegisterRequestTokenRestServlet(hs).register(http_server)
         MsisdnRegisterRequestTokenRestServlet(hs).register(http_server)
-        UsernameAvailabilityRestServlet(hs).register(http_server)
         RegistrationSubmitTokenServlet(hs).register(http_server)
+    UsernameAvailabilityRestServlet(hs).register(http_server)
     RegistrationTokenValidityRestServlet(hs).register(http_server)
     RegisterRestServlet(hs).register(http_server)