/api/download

This commit is contained in:
2025-11-11 02:19:39 +01:00
parent 425e03650f
commit ac9e688e7a
10 changed files with 116 additions and 29 deletions
+1 -1
View File
@@ -558,7 +558,7 @@ pub async fn get_document_version(
#[utoipa::path(
get,
path = "/download/{token}",
path = "/api/download/{token}",
params(("token" = String, Path, description = "Download token")),
responses((status = 200, description = "Proxied download stream or redirect")),
tag = "Documents"
+1 -1
View File
@@ -210,7 +210,7 @@ pub fn create_router(state: AppState) -> Router<()> {
);
let download_routes =
Router::new().route("/download/{token}", get(documents::download_with_token));
Router::new().route("/api/download/{token}", get(documents::download_with_token));
let folders_routes = Router::new()
.route(