1 2 3 4 5 6 7 8 9 10 11
use actix_web::{get, web, HttpResponse}; #[get("/health_check")] #[instrument] async fn health_check() -> HttpResponse { HttpResponse::Ok().finish() } pub fn config(cfg: &mut web::ServiceConfig) { cfg.service(health_check); }