diff --git a/filed/src/web/forms.rs b/filed/src/web/forms.rs index 121129f..e3e22ed 100644 --- a/filed/src/web/forms.rs +++ b/filed/src/web/forms.rs @@ -249,9 +249,10 @@ pub async fn upload(form: FormData, state: SharedState) -> Result } pub fn get_routes(state: SharedState) -> impl Filter + Clone { - warp::post().and( - warp::multipart::form() - .and(warp::any().map(move || state.clone())) - .and_then(upload) - ) + warp::post() + .and(warp::multipart::form()) + .and( + warp::any().map(move || state.clone()) + ) + .and_then(upload) } \ No newline at end of file