DownloadLink

This commit is contained in:
2025-11-21 13:53:13 +01:00
parent bd55b784d7
commit 5871c7ae6e
6 changed files with 262 additions and 68 deletions
+9 -2
View File
@@ -15,7 +15,13 @@ struct DocumentInfo {
#[derive(Deserialize)]
struct DocumentVersion {
download_path: String,
download: DownloadLink,
}
#[derive(Deserialize)]
struct DownloadLink {
url: String,
expires_at: i64,
}
#[tokio::test]
@@ -46,7 +52,8 @@ async fn document_download_redirects_when_proxy_disabled() -> Result<()> {
.current_version
.as_ref()
.expect("missing version")
.download_path
.download
.url
.clone();
let redirect = app.get(&download_path, None).await?;