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
All checks were successful
Build and Push Container Image / build-and-push-and-deploy (push) Successful in 2m15s
This commit is contained in:
3
main.go
3
main.go
@ -36,7 +36,8 @@ func main() {
|
|||||||
return
|
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"})
|
c.JSON(200, map[string]interface{}{"message": "pong"})
|
||||||
})
|
})
|
||||||
h.Spin()
|
h.Spin()
|
||||||
|
Reference in New Issue
Block a user