This commit is contained in:
Luna 2023-04-04 00:12:14 -03:00
parent 54352513fd
commit 466fb5e8c8
3 changed files with 28 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:6679".parse().unwrap())
.serve(app.into_make_service())
.await
.unwrap();
}