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

Method isController

packages/core/scanner.ts:749–751  ·  view source on GitHub ↗

* @param metatype * @returns `true` if `metatype` is annotated with the `@Controller()` decorator.

(metatype: Type<any>)

Source from the content-addressed store, hash-verified

747 * @returns `true` if `metatype` is annotated with the `@Controller()` decorator.
748 */
749 private isController(metatype: Type<any>): boolean {
750 return !!Reflect.getMetadata(CONTROLLER_WATERMARK, metatype);
751 }
752
753 /**
754 * @param metatype

Callers 1

insertModuleMethod · 0.95

Calls 1

getMetadataMethod · 0.45

Tested by

no test coverage detected