Static Methodvapor 4.106.3Vapor

    redirectMiddleware(path:)

    Basic middleware to redirect unauthenticated requests to the supplied path

    RedirectMiddleware.swift:8
    static func redirectMiddleware(path: String) -> Middleware

    Parameters

    path

    The path to redirect to if the request is not authenticated

    Other members in extension

    Type members