Route

Returns the matched Route struct.

  1. c.Route() *Route
  1. // http://localhost:8080/hello
  2. handler := func(c *fiber.Ctx) {
  3. r := c.Route()
  4. fmt.Println(r.Method, r.Path, r.Params, r.Handlers)
  5. // GET /hello/:name handler [name]
  6. }
  7. app.Get("/hello/:name", handler )