mirror of https://github.com/gofiber/fiber.git
parent
15e9235383
commit
c1c119337f
|
@ -60,7 +60,7 @@ app.Use([]string{"/api", "/home"}, func(c *fiber.Ctx) error {
|
|||
})
|
||||
|
||||
// Attach multiple handlers
|
||||
app.Use("/api",func(c *fiber.Ctx) error {
|
||||
app.Use("/api", func(c *fiber.Ctx) error {
|
||||
c.Set("X-Custom-Header", random.String(32))
|
||||
return c.Next()
|
||||
}, func(c *fiber.Ctx) error {
|
||||
|
|
Loading…
Reference in New Issue