import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';

import { Yard } from '../rule-engine/entities/yard.entity';
import { RouteMilestone } from './entities/route-milestone.entity';
import { Route } from './entities/route.entity';
import { RouteMilestonesRepository } from './route-milestones.repository';
import { RoutesController } from './routes.controller';
import { RoutesRepository } from './routes.repository';
import { RoutesService } from './routes.service';

@Module({
  imports: [TypeOrmModule.forFeature([Route, RouteMilestone, Yard])],
  controllers: [RoutesController],
  providers: [RoutesRepository, RouteMilestonesRepository, RoutesService],
  exports: [RoutesRepository, RouteMilestonesRepository, RoutesService],
})
export class RoutesModule {}
