From e85f4309d98793edddd2c9f18482e485d0c37b31 Mon Sep 17 00:00:00 2001 From: Snowykami Date: Mon, 16 Jun 2025 00:51:22 +0800 Subject: [PATCH] update route handler to support wildcard paths --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 00b9b3f..373767b 100644 --- a/main.go +++ b/main.go @@ -36,7 +36,8 @@ func main() { return } }) - h.GET("*", func(ctx context.Context, c *app.RequestContext) { + + h.GET("/*any", func(ctx context.Context, c *app.RequestContext) { c.JSON(200, map[string]interface{}{"message": "pong"}) }) h.Spin()