From 3ffca25f6f90e2569bcf8bafe86f54bf9562408e Mon Sep 17 00:00:00 2001 From: strawberry <strawberry@puppygock.gay> Date: Wed, 17 Jan 2024 19:54:17 -0500 Subject: [PATCH] update few endpoint docs versions Signed-off-by: strawberry <strawberry@puppygock.gay> --- src/api/client_server/media.rs | 6 +++--- src/api/client_server/message.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/client_server/media.rs b/src/api/client_server/media.rs index a00f0abb8..4eb01d351 100644 --- a/src/api/client_server/media.rs +++ b/src/api/client_server/media.rs @@ -92,7 +92,7 @@ pub async fn get_remote_content( Ok(content_response) } -/// # `GET /_matrix/media/r0/download/{serverName}/{mediaId}` +/// # `GET /_matrix/media/v3/download/{serverName}/{mediaId}` /// /// Load media from our server or over federation. /// @@ -123,7 +123,7 @@ pub async fn get_content_route( } } -/// # `GET /_matrix/media/r0/download/{serverName}/{mediaId}/{fileName}` +/// # `GET /_matrix/media/v3/download/{serverName}/{mediaId}/{fileName}` /// /// Load media from our server or over federation, permitting desired filename. /// @@ -158,7 +158,7 @@ pub async fn get_content_as_filename_route( } } -/// # `GET /_matrix/media/r0/thumbnail/{serverName}/{mediaId}` +/// # `GET /_matrix/media/v3/thumbnail/{serverName}/{mediaId}` /// /// Load media thumbnail from our server or over federation. /// diff --git a/src/api/client_server/message.rs b/src/api/client_server/message.rs index badb089b9..d332bcff6 100644 --- a/src/api/client_server/message.rs +++ b/src/api/client_server/message.rs @@ -14,7 +14,7 @@ sync::Arc, }; -/// # `PUT /_matrix/client/r0/rooms/{roomId}/send/{eventType}/{txnId}` +/// # `PUT /_matrix/client/v3/rooms/{roomId}/send/{eventType}/{txnId}` /// /// Send a message event into the room. /// -- GitLab