forked from ToolJet/ToolJet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule.ts
More file actions
22 lines (20 loc) · 825 Bytes
/
module.ts
File metadata and controls
22 lines (20 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { FoldersModule } from '@modules/folders/module';
import { DynamicModule } from '@nestjs/common';
import { FeatureAbilityFactory } from './ability';
import { SubModule } from '@modules/app/sub-module';
export class FolderAppsModule extends SubModule {
static async register(configs: { IS_GET_CONTEXT: boolean }): Promise<DynamicModule> {
const { FolderAppsController, FolderAppsService, FolderAppsUtilService } = await this.getProviders(
configs,
'folder-apps',
['controller', 'service', 'util.service']
);
return {
module: FolderAppsModule,
controllers: [FolderAppsController],
imports: [await FoldersModule.register(configs)],
providers: [FolderAppsService, FolderAppsUtilService, FeatureAbilityFactory],
exports: [FolderAppsUtilService],
};
}
}