mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-08-25 05:42:27 +00:00
23 lines
810 B
TypeScript
23 lines
810 B
TypeScript
import { forwardRef, Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { NeoLeapModule } from '~/common/modules/neoleap/neoleap.module';
|
|
import { GuardianModule } from '~/guardian/guardian.module';
|
|
import { UserModule } from '~/user/user.module';
|
|
import { CustomerController } from './controllers';
|
|
import { Customer } from './entities';
|
|
import { CustomerRepository } from './repositories/customer.repository';
|
|
import { CustomerService } from './services';
|
|
|
|
@Module({
|
|
imports: [
|
|
TypeOrmModule.forFeature([Customer]),
|
|
forwardRef(() => UserModule),
|
|
GuardianModule,
|
|
forwardRef(() => NeoLeapModule),
|
|
],
|
|
controllers: [CustomerController],
|
|
providers: [CustomerService, CustomerRepository],
|
|
exports: [CustomerService],
|
|
})
|
|
export class CustomerModule {}
|