import { Module } from '@nestjs/common'; import { CausesController } from './causes.controller'; import { CausesService } from './causes.service'; import { TypeOrmModule } from '@nestjs/typeorm'; import { Cause } from '../entities/cause.entity'; @Module({ imports: [TypeOrmModule.forFeature([Cause])], controllers: [CausesController], providers: [CausesService], }) export class CausesModule {}