Route
Contains the matched Route struct.
- c.Route() *Route
- // http://localhost:8080/hello
- app.Get("/hello", func(c *fiber.Ctx) {
- r := c.Route()
- fmt.Println(r.Method, r.Path, r.Params, r.Regexp, r.Handler)
- })
- app.Post("/:api?", func(c *fiber.Ctx) {
- c.Route()
- // => {GET /hello [] nil 0x7b49e0}
- })