From 735e7310c904abf18293456d37044dd9c5e796b0 Mon Sep 17 00:00:00 2001 From: RanXom Date: Mon, 13 Jul 2026 15:12:51 +0530 Subject: feat(api): create a /health API endpoint --- internal/api/new.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'internal/api/new.go') diff --git a/internal/api/new.go b/internal/api/new.go index a9a08eb..d225b02 100644 --- a/internal/api/new.go +++ b/internal/api/new.go @@ -10,9 +10,16 @@ func New(config Config) *Server { Handler: mux, } - return &Server{ + srv := &Server{ config: config, mux: mux, http: server, } + + srv.mux.HandleFunc( + "GET /health", + srv.handleHealth, + ) + + return srv } -- cgit v1.2.3