Middleware

middleware/skip

github.com/gofiber/fiber/v3/middleware/skip

import "github.com/gofiber/fiber/v3/middleware/skip"

Functions

func New(handler fiber.Handler, exclude func(c fiber.Ctx) bool) fiber.Handler

Source: middleware/skip/skip.go:10

New returns a middleware that calls the provided predicate for each request. If the predicate evaluates to true the wrapped handler is skipped and the next handler in the chain is executed.