dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_PartnershipModule cluster_PartnershipModule_exports cluster_PartnershipModule_providers PartnershipService PartnershipService PartnershipModule PartnershipModule PartnershipModule->PartnershipService PartnershipService PartnershipService PartnershipService->PartnershipModule

File

src/partnership/partnership.module.ts

import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { TypeOrmModule } from '@nestjs/typeorm';
import { PartnershipController } from './partnership.controller';
import { PartnershipService } from './partnership.service';
import { Partnership } from '../entities/partnership';
import { Client } from 'src/entities/client';
import { Distributor } from 'src/entities/distributor';

@Module({
  imports: [
    ConfigModule.forRoot(),
    TypeOrmModule.forFeature([Partnership, Client, Distributor]),
  ],
  controllers: [PartnershipController],
  providers: [PartnershipService],
  exports: [PartnershipService],
})
export class PartnershipModule {}

results matching ""

    No results matching ""