mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-28 19:30:57 +00:00
14 lines
516 B
TypeScript
14 lines
516 B
TypeScript
// apps/edr-freight-api/src/modules/trains/trains.module.ts
|
|
import { Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { Train } from './entities/train.entity';
|
|
import { TrainsController } from './trains.controller';
|
|
import { TrainsService } from './trains.service';
|
|
|
|
@Module({
|
|
imports: [TypeOrmModule.forFeature([Train])],
|
|
controllers: [TrainsController],
|
|
providers: [TrainsService],
|
|
exports: [TrainsService], // if other modules need it
|
|
})
|
|
export class TrainsModule {} |