import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { LocomotivesController } from './locomotives.controller'; import { Locomotive } from './entities/locomotive.entity'; import { LocomotivesRepository } from './locomotives.repository'; import { LocomotivesService } from './locomotives.service'; @Module({ imports: [TypeOrmModule.forFeature([Locomotive])], controllers: [LocomotivesController], providers: [LocomotivesRepository, LocomotivesService], exports: [LocomotivesRepository, LocomotivesService], }) export class LocomotivesModule {}