Initial Commit

This commit is contained in:
2026-07-11 18:54:33 +02:00
commit c6fbebf3ff
5 changed files with 1635 additions and 0 deletions

17
src/main.rs Normal file
View File

@@ -0,0 +1,17 @@
use std::error::Error;
use axum::routing::get;
use axum::{serve, Router};
use tokio::net::TcpListener;
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
let app = Router::new()
.route("/", get(hello));
let listener = TcpListener::bind("0.0.0.0:80").await?;
Ok(serve(listener, app).await?)
}
async fn hello() -> &'static str {
"Hello World"
}