From beed53dde27c17b4105c7168285d1deca137e493 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Sat, 24 Sep 2022 15:00:57 +0200 Subject: Fix error with multiple path param Grouped them as tuple --- src/routes/model.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/routes/model.rs') diff --git a/src/routes/model.rs b/src/routes/model.rs index b87258b..7d10061 100644 --- a/src/routes/model.rs +++ b/src/routes/model.rs @@ -162,8 +162,7 @@ async fn upload_model_file( /// The owner or a staffer can delete a model upload async fn delete_model_file( claims: Claims, - Path(model_id): Path, - Path(upload_id): Path, + Path((model_id, upload_id)): Path<(i32, i32)>, ) -> Result { let model = match Model::find_by_id(model_id).await { Ok(model) => model, -- cgit v1.2.3-71-g8e6c