init
Some checks failed
build-server / build (push) Failing after 54s

This commit is contained in:
2025-09-05 21:52:36 +00:00
commit a63c87b2f8
10 changed files with 1043 additions and 0 deletions

13
src/main.rs Normal file
View File

@@ -0,0 +1,13 @@
use axum::{response::Html, routing::get, Router};
const INDEX: &str = include_str!("../html/index.html");
#[tokio::main]
async fn main() {
// build our application with a single route
let app = Router::new().route("/", get(|| async { Html(INDEX) }));
// run our app with hyper, listening globally on port 3000
let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap();
axum::serve(listener, app).await.unwrap();
}