• Dynamic encrypted module.

    EncryptedModule.dynamic is an extension of the EncryptedModule function who configures controller classes by the dynamic importing. By specifying directory path of the controller classes, those controllers would be automatically imported and configured.

    Parameters

    • path: string | string[] | { exclude?: string[]; include: string[] }

      Directory path of the controller classes

    • password: IEncryptionPassword | Closure

      Encryption password or its getter function

    • options: Omit<ModuleMetadata, "controllers"> = {}

      Additional options except controller

    • OptionalisTsNode: boolean

    Returns Promise<object>

    Class decorated module instance