- mount(
path: string | string[] | { exclude?: string[]; include: string[] },
metadata?: Omit<ModuleMetadata, "controllers">,
isTsNode?: boolean,
): Promise<object> Parameters
- path: string | string[] | { exclude?: string[]; include: string[] }
- metadata: Omit<ModuleMetadata, "controllers"> = {}
Optional
isTsNode: boolean
Returns Promise<object>
module instance
Mount dynamic module.
Constructs a module instance with directory path of controller classes.
Every controller classes in the target directory would be dynamically mounted.