Question Description
Short snippet:
app := fiber.New()
app.Get("/", ...)
app.Get("/users/:id", ...)
app.Use(c *fiber.Ctx) error {
err := c.Next()
routePath := c.Route().Path
println(routePath)
return err
})
Test case 1: GET /.
In stdout:/. ✅
It's OK, as expected.
Test case 2: GET /users/1.
In stdout:/users/:id. ✅
It's OK, as expected.
Test case 3: GET /unknown.
In stdout: /. 🔥
Why? Why not empty string or /unknown?
So how to check resolved route or not?
Code Snippet (optional)
Checklist: