(...params: unknown[])
| 65 | } |
| 66 | const MiddlewareHost = class extends middleware { |
| 67 | use(...params: unknown[]) { |
| 68 | const [req, _, next] = params as [Record<string, any>, any, Function]; |
| 69 | const isExcluded = isMiddlewareRouteExcluded( |
| 70 | req, |
| 71 | excludedRoutes, |
| 72 | httpAdapter, |
| 73 | ); |
| 74 | if (isExcluded) { |
| 75 | return next(); |
| 76 | } |
| 77 | return super.use(...params); |
| 78 | } |
| 79 | }; |
| 80 | return assignToken(MiddlewareHost, middleware.name); |
| 81 | } |
nothing calls this directly
no test coverage detected