feat: ✨ server status
This commit is contained in:
parent
180d13b9b9
commit
75cf0be90d
3 changed files with 86 additions and 3 deletions
|
@ -12,7 +12,7 @@ pub async fn routing(State(state): State<AppState>) -> Router{
|
|||
|
||||
async fn alive() -> impl IntoResponse{
|
||||
let alive_json = serde_json::json!({
|
||||
"status":"alive",
|
||||
"status":"Alive",
|
||||
});
|
||||
println!("Alive");
|
||||
(StatusCode::OK, Json(alive_json))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue