Query
This property is an object containing a property for each query string parameter in the route.
If there is no query string, it returns an empty string.
- c.Query(parameter string) string
- // GET http://example.com/shoes?order=desc&brand=nike
- app.Get("/", func(c *fiber.Ctx) {
- c.Query("order") // "desc"
- c.Query("brand") // "nike"
- })