@midwayjs/coreFunctionscreateMiddlewareVersion: NextcreateMiddleware CallablecreateMiddleware<CTX, R, N, M>(middleware: M, options: MiddlewareResolveOptions<M, CTX, R, N>, name?: string): CompositionMiddleware<CTX, R, N>wrap a middleware with options and composition a new middlewareType parametersCTX: ContextRNM: ClassMiddleware<CTX, R, N>
wrap a middleware with options and composition a new middleware