forked-synapse/synapse/rest
devonh f31360e34b
Start handlers for new media endpoints when media resource configured (#17483)
This is in response to issue #17473. 
Not all the necessary handlers to deal with media requests are started
now when configuring synapse to use a media worker as per the [example
config](https://element-hq.github.io/synapse/latest/workers.html#synapseappmedia_repository).
The new media endpoints introduced with authenticated media fall under
the `client` & `federation` handlers in synapse.
This PR starts up handlers for the new media endpoints if a worker has
been configured with only the `media` resource type.

### Pull Request Checklist

<!-- Please read
https://element-hq.github.io/synapse/latest/development/contributing_guide.html
before submitting your pull request -->

* [X] Pull request is based on the develop branch
* [x] Pull request includes a [changelog
file](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#changelog).
The entry should:
- Be a short description of your change which makes sense to users.
"Fixed a bug that prevented receiving messages from other servers."
instead of "Moved X method from `EventStore` to `EventWorkerStore`.".
  - Use markdown where necessary, mostly for `code blocks`.
  - End with either a period (.) or an exclamation mark (!).
  - Start with a capital letter.
- Feel free to credit yourself, by adding a sentence "Contributed by
@github_username." or "Contributed by [Your Name]." to the end of the
entry.
* [X] [Code
style](https://element-hq.github.io/synapse/latest/code_style.html) is
correct
(run the
[linters](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#run-the-linters))

---------

Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
2024-08-08 14:35:46 +00:00
..
admin Allow enabling sliding sync per-user (#17393) 2024-07-05 13:04:27 +01:00
client Sliding Sync: Add more tracing (#17514) 2024-08-06 11:43:43 -05:00
consent Update license headers 2023-11-21 15:29:58 -05:00
key Reorganize Pydantic models and types used in handlers (#17279) 2024-06-10 15:03:50 -05:00
media Prepare for authenticated media freeze (#17433) 2024-07-22 10:33:17 +01:00
synapse An federation whitelist query endpoint extension (#16848) 2024-05-13 19:38:45 +00:00
__init__.py Start handlers for new media endpoints when media resource configured (#17483) 2024-08-08 14:35:46 +00:00
health.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
well_known.py Update license headers 2023-11-21 15:29:58 -05:00