diff --git a/src/lib.rs b/src/lib.rs index 9bc3c32..12fa34c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -129,6 +129,17 @@ where )) .fallback(|| async { ErrorResponse::method_not_allowed() }), ) + .route( + "/proxy/", + get(App::::proxy_without_filename) + .head(App::::proxy_without_filename) + .options(App::::proxy_options) + .route_layer(middleware::from_fn_with_state( + state.clone(), + set_cache_control, + )) + .fallback(|| async { ErrorResponse::method_not_allowed() }), + ) .route( "/proxy/:filename", get(App::::proxy_with_filename)