跳到主要内容
版本:Next

IMiddleware <CTX, R, N>

Common middleware definition

Index

Properties

optionalignore

ignore?: IgnoreMatcher<CTX> | IgnoreMatcher<CTX>[]

Match those paths with higher priority than ignore

optionalmatch

match?: IgnoreMatcher<CTX> | IgnoreMatcher<CTX>[]

Which paths to ignore

resolve

resolve: (app: IMidwayBaseApplication<Context>, options?: any) => FunctionMiddleware<CTX, R, N> | Promise<FunctionMiddleware<CTX, R, N>>