Initial commit

This commit is contained in:
Martin Brodbeck 2023-09-25 15:12:47 +02:00
commit 3b42995e47
4 changed files with 708 additions and 0 deletions

13
src/main.rs Normal file
View file

@ -0,0 +1,13 @@
use axum::{routing::get, Router};
#[tokio::main]
async fn main() {
// build our application with a single route
let app = Router::new().route("/", get(|| async { "Hello, World!" }));
// run it with hyper on localhost:3000
axum::Server::bind(&"0.0.0.0:3000".parse().unwrap())
.serve(app.into_make_service())
.await
.unwrap();
}