caddy fiilailuu
This commit is contained in:
@@ -100,7 +100,7 @@ async fn main() {
|
||||
});
|
||||
|
||||
let app = Router::new()
|
||||
.nest_service("/", ServeDir::new("../static"))
|
||||
.nest_service("/", ServeDir::new(std::env::var("STATIC_DIR").unwrap_or_else(|_| "../static".to_string())))
|
||||
.route("/ws", get(ws_handler))
|
||||
.with_state(state);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user