Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Add missing user directory search endpoint to the generic worker docu…
Browse files Browse the repository at this point in the history
…mentation (#12773)

Signed-off-by: Sami Olmari <[email protected]>
  • Loading branch information
olmari authored May 19, 2022
1 parent 5675ceb commit 4761901
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/12773.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add missing user directory endpoint from the generic worker documentation. Contributed by @olmari.
10 changes: 10 additions & 0 deletions docs/workers.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ information.
# Presence requests
^/_matrix/client/(api/v1|r0|v3|unstable)/presence/

# User directory search requests
^/_matrix/client/(r0|v3|unstable)/user_directory/search$

Additionally, the following REST endpoints can be handled for GET requests:

Expand Down Expand Up @@ -448,6 +450,14 @@ update_user_directory_from_worker: worker_name
This work cannot be load-balanced; please ensure the main process is restarted
after setting this option in the shared configuration!

User directory updates allow REST endpoints matching the following regular
expressions to work:

^/_matrix/client/(r0|v3|unstable)/user_directory/search$

The above endpoints can be routed to any worker, though you may choose to route
it to the chosen user directory worker.

This style of configuration supersedes the legacy `synapse.app.user_dir`
worker application type.

Expand Down

0 comments on commit 4761901

Please sign in to comment.