(guard: NestGuard)
| 176 | const _moduleGuards: { guard: NestGuard; controller: NestController }[] = []; |
| 177 | |
| 178 | export function UseModuleGuard(guard: NestGuard) { |
| 179 | return function (module: any) { |
| 180 | const moduleControllers = _getDescendantControllers(module); |
| 181 | |
| 182 | for (const controller of moduleControllers) { |
| 183 | _moduleGuards.push({ guard, controller }); |
| 184 | } |
| 185 | }; |
| 186 | } |
| 187 | |
| 188 | // Application creation |
| 189 |
nothing calls this directly
no test coverage detected