This commit is contained in:
@@ -47,7 +47,7 @@ pub fn router() -> Router {
|
||||
}
|
||||
|
||||
async fn root() -> axum::response::Html<String> {
|
||||
let current_time = Local::now().format("%Y-%m-%d %H:%M:%S !!!").to_string();
|
||||
let current_time = Local::now().format("%Y-%m-%d %H:%M:%S").to_string();
|
||||
println!("Current Time: {}", current_time);
|
||||
axum::response::Html(format!("<h1>Current Time: {}</h1>", current_time))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user