Merge pull request #18 from Fenny/master

Change example to use Middleware
pull/28/head
Fenny 2020-02-03 09:55:28 -05:00 committed by GitHub
commit 4f651a2c55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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()
})