馃敟 New
-
App & Group https://github.com/gofiber/fiber/pull/476Views, click here to see an example.馃Ч Updates
-
-) and the dot (.) are now interpreted literally in paths, they can be used along with route parameters for useful purposes. Thank you @ReneWerner87 // http://localhost:3000/plantae/prunus.persica
app.Get("/plantae/:genus.:species", func(c *fiber.Ctx) {
c.Params("genus") // prunus
c.Params("species") // persica
})
// http://localhost:3000/flights/LAX-SFO
app.Get("/flights/:from-:to", func(c *fiber.Ctx) {
c.Params("from") // LAX
c.Params("to") // SFO
})
layout string argument. Special thanks to @bdtomlinv1.5.0app.Handler is now accessible https://github.com/gofiber/fiber/issues/485 https://github.com/gofiber/fiber/pull/504
gofiber/utils v0.0.9app.Listen documentation https://github.com/gofiber/fiber/pull/561MethodNotAllowed process https://github.com/gofiber/fiber/pull/563 @ReneWerner87馃┕ Fixes
-
405 when another method is available on the same path https://github.com/gofiber/fiber/issues/492c.Subdomains https://github.com/gofiber/fiber/pull/475flag.Parse() compatibility https://github.com/gofiber/fiber/issues/469SendFile 304 cache behavior https://github.com/gofiber/fiber/issues/516405 for Use cases https://github.com/gofiber/fiber/issues/556-prefork-child flag from flag.Usage https://github.com/gofiber/fiber/issues/522 https://github.com/gofiber/fiber/pull/542 @doingodsworkIf you need help or want to chat with us, join us on Discord https://gofiber.io/discord
What about hyphens in routes? It was planned for V1.11.
@invipal in the last version we had put more focus on stability, user friendliness and performance, so the feature has been dropped
but it will come in the next versions, i will work on it in the next days
@invipal hyphen support is now available v1.12.+
// http://localhost:3000/plantae/prunus.persica
app.Get("/plantae/:genus.:species", func(c *fiber.Ctx) {
c.Params("genus") // prunus
c.Params("species") // persica
})
// http://localhost:3000/flights/LAX-SFO
app.Get("/flights/:from-:to", func(c *fiber.Ctx) {
c.Params("from") // LAX
c.Params("to") // SFO
})
Thank you @Fenny, with this feature, Fiber now fully met our expectation for developing our next project.
Most helpful comment
@invipal in the last version we had put more focus on stability, user friendliness and performance, so the feature has been dropped
but it will come in the next versions, i will work on it in the next days