mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
client_server: use and provide authenticated media API
This commit is contained in:
parent
7f6ab63752
commit
79053ad052
4 changed files with 568 additions and 101 deletions
16
src/main.rs
16
src/main.rs
|
|
@ -390,12 +390,24 @@ fn routes(config: &Config) -> Router {
|
|||
.ruma_route(c2s::get_message_events_route)
|
||||
.ruma_route(c2s::search_events_route)
|
||||
.ruma_route(c2s::turn_server_route)
|
||||
.ruma_route(c2s::send_event_to_device_route)
|
||||
.ruma_route(c2s::send_event_to_device_route);
|
||||
|
||||
// unauthenticated (legacy) media
|
||||
let router = router
|
||||
.ruma_route(c2s::get_media_config_legacy_route)
|
||||
.ruma_route(c2s::get_content_legacy_route)
|
||||
.ruma_route(c2s::get_content_as_filename_legacy_route)
|
||||
.ruma_route(c2s::get_content_thumbnail_legacy_route);
|
||||
|
||||
// authenticated media
|
||||
let router = router
|
||||
.ruma_route(c2s::get_media_config_route)
|
||||
.ruma_route(c2s::create_content_route)
|
||||
.ruma_route(c2s::get_content_route)
|
||||
.ruma_route(c2s::get_content_as_filename_route)
|
||||
.ruma_route(c2s::get_content_thumbnail_route)
|
||||
.ruma_route(c2s::get_content_thumbnail_route);
|
||||
|
||||
let router = router
|
||||
.ruma_route(c2s::get_devices_route)
|
||||
.ruma_route(c2s::get_device_route)
|
||||
.ruma_route(c2s::update_device_route)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue