fix : html + css display

This commit is contained in:
GreyRav
2026-03-30 15:21:24 +02:00
committed by M1n-0
parent ecbf7a5b34
commit 1d28a75529
3 changed files with 54 additions and 1 deletions

View File

@@ -3,10 +3,13 @@ use std::net::SocketAddr;
use std::path::Path;
use tokio::fs::File;
use tokio::io::{self, AsyncReadExt};
use tower_http::services::ServeDir;
#[tokio::main]
async fn main() {
let app = Router::new().route("/", get(handler));
let app = Router::new()
.route("/", get(handler))
.nest_service("/assets", ServeDir::new("../web/assets"));
let addr = SocketAddr::from(([127, 0, 0, 1], 3000));
println!("listening on {}", addr);