Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Type Method

redirectMiddleware(path:)

Basic middleware to redirect unauthenticated requests to the supplied path
static func redirectMiddleware(path: String) -> any Middleware

Parameters

path

The path to redirect to if the request is not authenticated