MCPcopy
hub / github.com/nestjs/nest / use

Method use

packages/core/middleware/utils.ts:67–78  ·  view source on GitHub ↗
(...params: unknown[])

Source from the content-addressed store, hash-verified

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 }

Callers

nothing calls this directly

Calls 3

useMethod · 0.65
nextFunction · 0.50

Tested by

no test coverage detected