update route handler to support wildcard paths
All checks were successful
Build and Push Container Image / build-and-push-and-deploy (push) Successful in 2m15s

This commit is contained in:
2025-06-16 00:51:22 +08:00
parent 253734c2a5
commit e85f4309d9

View File

@ -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()