mirror of
https://github.com/gofiber/fiber.git
synced 2025-05-31 11:52:41 +00:00
Change example to use Middleware
This commit is contained in:
parent
65be8ea7e6
commit
4e5f263cb7
@ -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()
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user