요청을 받으면 콘솔에 출력하도록 수정
All checks were successful
Build and Push / Build Docker image (push) Successful in 43s
All checks were successful
Build and Push / Build Docker image (push) Successful in 43s
This commit is contained in:
@@ -47,8 +47,8 @@ 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();
|
||||
println!("Current Time: {}", current_time);
|
||||
axum::response::Html(format!("<h1>Current Time: {}</h1>", current_time))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user