do frontend (preact)
This commit is contained in:
@@ -21,7 +21,7 @@ pub async fn run_server(mut args: ServeArgs, config: config::Config) -> anyhow::
|
||||
let app = Router::new()
|
||||
.route("/api-ws", routing::get(api::websocket))
|
||||
.fallback_service({
|
||||
let dir_serve = ServeDir::new("static").append_index_html_on_directories(true);
|
||||
let dir_serve = ServeDir::new("web/dist").append_index_html_on_directories(true);
|
||||
|
||||
#[cfg(feature = "compress")]
|
||||
let dir_serve = dir_serve
|
||||
|
||||
Reference in New Issue
Block a user