Next
When Next is called, it executes the next method in the stack that matches the current route. You can pass an error struct within the method that will end the chaining and call the error handler.
c.Next(err ...error)
app.Get("/", func(c *fiber.Ctx) {
fmt.Println("1st route!")
c.Next()
})
app.Get("*", func(c *fiber.Ctx) {
fmt.Println("2nd route!")
c.Next()
})
app.Get("/", func(c *fiber.Ctx) {
fmt.Println("3rd route!")
c.Send("Hello, World!")
})