Set up packaging and distribution for the file service app #73

Merged
savanni merged 3 commits from file-service/distribution into main 2023-10-04 19:25:11 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit d4a5e0f55d - Show all commits

View File

@ -68,7 +68,7 @@ pub async fn file(
old_etags: Option<String>, old_etags: Option<String>,
) -> Result<Response<Vec<u8>>, Error> { ) -> Result<Response<Vec<u8>>, Error> {
match app.get_file(&FileId::from(id)).await { match app.get_file(&FileId::from(id)).await {
Ok(file) => serve_file(file.info.clone(), || file.thumbnail(), old_etags), Ok(file) => serve_file(file.info.clone(), || file.content(), old_etags),
Err(_err) => Response::builder() Err(_err) => Response::builder()
.status(StatusCode::NOT_FOUND) .status(StatusCode::NOT_FOUND)
.body(vec![]), .body(vec![]),