Middleware implementation as a function.
A function-based middleware that receives MiddlewareArgs and returns the result of processing. This is the most common and flexible way to define middleware.
MiddlewareArgs
Type of arguments passed to the function
Type of value returned from the function
IMPORT_PATH: @daiso-tech/core/middleware
@daiso-tech/core/middleware
Middleware implementation as a function.
A function-based middleware that receives
MiddlewareArgsand returns the result of processing. This is the most common and flexible way to define middleware.