From af3f5430a0b0f1834228b28fd89848959512e718 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Mon, 12 Sep 2022 15:30:19 +0200 Subject: Use configuration for environment variables --- src/routes/model.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/routes') diff --git a/src/routes/model.rs b/src/routes/model.rs index d1ac197..34e896d 100644 --- a/src/routes/model.rs +++ b/src/routes/model.rs @@ -1,4 +1,3 @@ -use crate::config::MAX_UPLOAD_FILE_SIZE; use crate::errors::AppError; use crate::files::upload; use crate::models::{ @@ -69,7 +68,7 @@ async fn get_model(Path(model_id): Path) -> Result, AppErro async fn upload_model_file( claims: Claims, Path(model_id): Path, - ContentLengthLimit(multipart): ContentLengthLimit, + ContentLengthLimit(multipart): ContentLengthLimit, ) -> Result, AppError> { let model = match Model::find_by_id(model_id).await { Ok(model) => model, -- cgit v1.2.3-71-g8e6c