everything ready !

This commit is contained in:
Agahnim 2026-03-19 14:38:27 +01:00
parent 27c41667c3
commit 88e1c86f41
7 changed files with 44 additions and 1 deletions

View file

@ -1,10 +1,11 @@
use agahnim_web_v2::templates::index::home;
use axum::{Router, routing::get};
use tower_http::services::ServeDir;
#[tokio::main]
async fn main() {
let app = Router::new()
.route("/", get(|| async { "Hello World" }))
.route("/", get(home))
.nest_service("/static", ServeDir::new("static"));
let listener = tokio::net::TcpListener::bind("0.0.0.0:7122")