From 50ce8cb96b2b218751c2fc2a6b19372f51846acc Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Mon, 14 Jul 2025 19:34:59 +0300 Subject: feat: rewrite in rust --- src/health.rs | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/health.rs (limited to 'src/health.rs') diff --git a/src/health.rs b/src/health.rs new file mode 100644 index 0000000..daa2f43 --- /dev/null +++ b/src/health.rs @@ -0,0 +1,6 @@ +use axum::{response::IntoResponse, Json}; +use serde_json::json; + +pub async fn health_handler() -> impl IntoResponse { + Json(json!({"status": "ok"})) +} \ No newline at end of file -- cgit v1.2.3