/api/download
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user