mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 20:10:56 +00:00
30 lines
1.3 KiB
TypeScript
30 lines
1.3 KiB
TypeScript
import { Module, forwardRef } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
|
|
import { BillingModule } from '../billing/billing.module';
|
|
import { BookingsModule } from '../bookings/bookings.module';
|
|
import { DriversModule } from '../drivers/drivers.module';
|
|
import { NotificationsModule } from '../notifications/notifications.module';
|
|
import { VehiclesModule } from '../vehicles/vehicles.module';
|
|
import { FirstMile } from './entities/first-mile.entity';
|
|
import { FirstMileContainerAllocation } from './entities/first-mile-container-allocation.entity';
|
|
import { FirstMileController } from './first-mile.controller';
|
|
import { FirstMileInvoiceService } from './first-mile-invoice.service';
|
|
import { FirstMileRepository } from './first-mile.repository';
|
|
import { FirstMileService } from './first-mile.service';
|
|
|
|
@Module({
|
|
imports: [
|
|
TypeOrmModule.forFeature([FirstMile, FirstMileContainerAllocation]),
|
|
BillingModule,
|
|
forwardRef(() => BookingsModule),
|
|
VehiclesModule,
|
|
DriversModule,
|
|
NotificationsModule,
|
|
],
|
|
controllers: [FirstMileController],
|
|
providers: [FirstMileRepository, FirstMileService, FirstMileInvoiceService],
|
|
exports: [FirstMileRepository, FirstMileService, FirstMileInvoiceService],
|
|
})
|
|
export class FirstMileModule {}
|