From ed5d1aab695b41ac683dfd6da82758911ea6d85c Mon Sep 17 00:00:00 2001 From: Owen Date: Fri, 29 May 2026 11:10:15 +0200 Subject: [PATCH] return json for health endpoint --- bin/main.ml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/main.ml b/bin/main.ml index de04401..77b6dd4 100644 --- a/bin/main.ml +++ b/bin/main.ml @@ -146,7 +146,8 @@ let () = [ Dream.get "/" (fun request -> Dream.from_filesystem "static" "doc.html" request); - Dream.get "/health" (fun _ -> Dream.respond "OK"); + Dream.get "/health" (fun _ -> + Dream.json {|{"type": "success", "message": "API is functional"}|}); Dream.post "/api/v1/pdf" handle_convert; Dream.get "/api/v1" (fun request -> Dream.from_filesystem "static" "doc.html" request);