diff --git a/src/api/router.rs b/src/api/router.rs index 1e4a7464..94ec5571 100644 --- a/src/api/router.rs +++ b/src/api/router.rs @@ -244,8 +244,12 @@ pub fn build(router: Router, server: &Server) -> Router { get(client::get_content_thumbnail_legacy_legacy_route), ); } else { - router = router.route("/_matrix/media/*path", any(legacy_media_disabled)); - router = router.route("/_matrix/media/v3/preview_url", any(redirect_legacy_preview)); + router = router + .route("/_matrix/media/v1/*path", any(legacy_media_disabled)) + .route("/_matrix/media/v3/config", any(legacy_media_disabled)) + .route("/_matrix/media/v3/download/*path", any(legacy_media_disabled)) + .route("/_matrix/media/v3/thumbnail/*path", any(legacy_media_disabled)) + .route("/_matrix/media/v3/preview_url", any(redirect_legacy_preview)); } router