Inital API - Heath Endpoint
This commit is contained in:
17
src/main.rs
Normal file
17
src/main.rs
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user