Change example to use Middleware

This commit is contained in:
Fenny 2020-02-03 15:55:03 +01:00
parent 65be8ea7e6
commit 4e5f263cb7

View File

@ -56,7 +56,7 @@ import "github.com/fenny/fiber"
func main() {
app := fiber.New()
app.Get(func(c *fiber.Ctx) {
app.Use(func(c *fiber.Ctx) {
c.Set("Cache-Control", "max-age=2592000, public")
c.Next()
})