summaryrefslogtreecommitdiff
path: root/src/health.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/health.rs')
-rw-r--r--src/health.rs6
1 files changed, 6 insertions, 0 deletions
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