add : all folder + files for backend project

This commit is contained in:
GreyRav
2026-03-30 11:42:42 +02:00
parent a8a0f54cb7
commit 3ad5811566
5 changed files with 785 additions and 1 deletions

14
backend/src/main.rs Normal file
View File

@@ -0,0 +1,14 @@
use axum::{routing::get, Router};
use std::net::SocketAddr;
#[tokio::main]
async fn main() {
let app = Router::new().route("/", get(|| async { "Hello, world!" }));
let addr = SocketAddr::from(([127, 0, 0, 1], 3000));
println!("listening on {}", addr);
axum_server::bind(addr)
.serve(app.into_make_service())
.await
.unwrap();
}