From 15640ecf50bd8d3db36bce03ca6fccb4f984ac7e Mon Sep 17 00:00:00 2001 From: Kilerd Chan Date: Thu, 19 Dec 2024 23:30:53 +0800 Subject: [PATCH] fix: static file import route --- gotcha/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gotcha/src/lib.rs b/gotcha/src/lib.rs index fa14d98..164cf77 100644 --- a/gotcha/src/lib.rs +++ b/gotcha/src/lib.rs @@ -45,7 +45,7 @@ pub mod layers { } #[cfg(feature = "static_files")] -pub use tower_http::fs::{ServeDir, ServeFile}; +pub use tower_http::services::{ServeDir, ServeFile}; // #[cfg(feature = "task")] pub use task::TaskScheduler;