Files
ever-gauzy/packages/core/src/integration-tenant/integration-tenant.module.ts
T

33 lines
1.4 KiB
TypeScript

import { forwardRef, Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { RouterModule } from '@nestjs/core';
import { CqrsModule } from '@nestjs/cqrs';
import { IntegrationTenantController } from './integration-tenant.controller';
import { IntegrationTenantService } from './integration-tenant.service';
import { IntegrationTenant } from './integration-tenant.entity';
import { IntegrationSettingModule } from './../integration-setting/integration-setting.module';
import { IntegrationEntitySettingModule } from './../integration-entity-setting/integration-entity-setting.module';
import { RoleModule } from '../role/role.module';
import { UserModule } from '../user/user.module';
import { RolePermissionModule } from '../role-permission/role-permission.module';
import { CommandHandlers } from './commands/handlers';
import { TenantModule } from '../tenant/tenant.module';
@Module({
imports: [
RouterModule.register([{ path: '/integration-tenant', module: IntegrationTenantModule }]),
TypeOrmModule.forFeature([IntegrationTenant]),
TenantModule,
UserModule,
RoleModule,
RolePermissionModule,
forwardRef(() => IntegrationSettingModule),
forwardRef(() => IntegrationEntitySettingModule),
CqrsModule
],
exports: [IntegrationTenantService],
controllers: [IntegrationTenantController],
providers: [IntegrationTenantService, ...CommandHandlers]
})
export class IntegrationTenantModule {}