diff --git a/src/server.rs b/src/server.rs index 121cf2e..9db890a 100644 --- a/src/server.rs +++ b/src/server.rs @@ -91,7 +91,9 @@ impl Server { .and_then(patch_key)), ); - let webui = fs::dir("assets") + let webui = warp::get2() + .and(path::end()) + .and(fs::file("webui/dist/index.html")) .or(fs::dir("webui/dist")) .and(webui_enabled);