Skip to main contentModule media_legacy
Source use axum::extract::State; ๐ use axum::response::IntoResponse; ๐ use axum::response::Redirect; ๐ use axum::response::Response; ๐ use reqwest::Url; ๐ use ruma::Mxc; ๐ use ruma::api::client::media::get_content; ๐ use ruma::api::client::media::get_content_as_filename; ๐ use ruma::api::client::media::get_content_thumbnail; ๐ use ruma::api::client::media::get_content_thumbnail::v3::Response as ThumbnailResponse; ๐ use ruma::api::client::media::get_media_config; ๐ use ruma::api::client::media::get_media_preview; ๐ use tuwunel_core::Err; ๐ use tuwunel_core::Result; ๐ use tuwunel_core::err; ๐ use tuwunel_core::utils::content_disposition::make_content_disposition; ๐ use tuwunel_core::utils::math::ruma_from_usize; ๐ use tuwunel_service::media::Animate; ๐ use tuwunel_service::media::CACHE_CONTROL_IMMUTABLE; ๐ use tuwunel_service::media::CORP_CROSS_ORIGIN; ๐ use tuwunel_service::media::Dim; ๐ use tuwunel_service::media::Media; ๐ use crate::ClientIp; ๐ use crate::Ruma; ๐ use crate::RumaResponse; ๐
- get_content_as_filename_legacy_route ๐
GET /_matrix/media/v3/download/{serverName}/{mediaId}/{fileName}- get_content_legacy_route ๐
GET /_matrix/media/v3/download/{serverName}/{mediaId}- get_content_thumbnail_legacy_route ๐
GET /_matrix/media/v3/thumbnail/{serverName}/{mediaId}- get_media_config_legacy_route ๐
GET /_matrix/media/v3/config- get_media_preview_legacy_route ๐
GET /_matrix/media/v3/preview_url