From 7f867b02d61139f340a9a8f1d5a32819a97da86d Mon Sep 17 00:00:00 2001 From: Cowch Date: Sat, 12 Jul 2025 21:41:47 -0500 Subject: [PATCH] refactor(backend): changes to have a catch all and not return a 404 always --- backend/main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/main.go b/backend/main.go index 234be66..59c869e 100644 --- a/backend/main.go +++ b/backend/main.go @@ -11,7 +11,12 @@ func main() { fmt.Println("Welcome to lst backend where all the fun happens.") r := gin.Default() - r.GET("/", errorLoc) + + r.GET("/api/ping", func(c *gin.Context) { + c.JSON(200, gin.H{"message": "pong"}) + }) + + r.Any("/", errorLoc) r.Run(":8080") }