feat: add thumbnail spec
This commit is contained in:
@@ -33,7 +33,9 @@ pub async fn proxy_file(
|
||||
.bearer_auth(token)
|
||||
.send()
|
||||
.await?;
|
||||
response.error_for_status_ref()?;
|
||||
response
|
||||
.error_for_status_ref()
|
||||
.map_err(|_| crate::error::Error::NotFound)?;
|
||||
|
||||
let bytes = response.bytes().await?;
|
||||
let mime = mime_guess::from_path(&path.file)
|
||||
|
||||
Reference in New Issue
Block a user