From a7e191b520546455da3ab59bf0053134ec794c27 Mon Sep 17 00:00:00 2001 From: Skullheadx Date: Sat, 16 May 2026 15:39:52 -0400 Subject: [PATCH] organize main.go --- main.go | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index 30841e7..d35d86b 100644 --- a/main.go +++ b/main.go @@ -9,13 +9,18 @@ import ( ); -func main() { - fmt.Println("monopoly-web") - healthHandler:= func(w http.ResponseWriter, req *http.Request) { - io.WriteString(w, "Status: healthy\n") - } +func main() { + fmt.Println("monopoly-web backend") + // register routes http.HandleFunc("/health", healthHandler) + + + // listen and serve log.Fatal(http.ListenAndServe(":8080",nil)) } + +func healthHandler(w http.ResponseWriter, req *http.Request) { + io.WriteString(w, "Status: healthy\n") +} -- 2.54.0