Instance Methodvapor 4.106.3Vapor
use(_:at:)
Adds a pre-initialized Middleware
instance.
mutating func use(_ middleware: Middleware, at position: Position = .end)
app.middleware.use(fooMiddleware)
Other members in extension
Types
Type members
init(
) Create a new, empty
Middleware
.
Instance members
func resolve(
) -> [Middleware] Resolves the configured middleware for a given container