12 lines
297 B
Rust
12 lines
297 B
Rust
use actix_web::{HttpResponse, Result, get};
|
|
use serde_json::json;
|
|
|
|
#[get("/health")]
|
|
pub async fn health_check() -> Result<HttpResponse> {
|
|
Ok(HttpResponse::Ok().json(json!({
|
|
"status": "ok",
|
|
"service": "calendar-microservice",
|
|
"timestamp": chrono::Utc::now()
|
|
})))
|
|
}
|