refactor(backend): changes to have a catch all and not return a 404 always

This commit is contained in:
2025-07-12 21:41:47 -05:00
parent 8c04e7ace5
commit 7f867b02d6

View File

@@ -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")
}