Inital API - Heath Endpoint

This commit is contained in:
2024-02-24 17:41:55 -03:00
parent 9fef149d10
commit ef43c102aa
12 changed files with 1191 additions and 6 deletions

17
src/main.rs Normal file
View File

@@ -0,0 +1,17 @@
mod route;
mod model;
mod handler;
use axum::http::{
header::{ACCEPT, AUTHORIZATION, CONTENT_TYPE},
HeaderValue, Method
};
#[tokio::main]
async fn main() {
let app = route::create_route();
println!("🚀 Server started successfully");
let listener = tokio::net::TcpListener::bind("0.0.0.0:8500").await.unwrap();
axum::serve(listener, app).await.unwrap();
}