Files
edr-platform/apps/edr-freight-api/src/modules/gps-tracking/gps-tracking.module.ts
natib21 15fc21a6c9 gps
2026-07-10 15:23:49 +00:00

21 lines
978 B
TypeScript

import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { GpsDevice } from './entities/gps-device.entity';
import { GpsPosition } from './entities/gps-position.entity';
import { GpsDeviceRepository, GpsPositionRepository } from './gps-tracking.repository';
import { GpsTrackingService } from './gps-tracking.service';
import { GpsTrackingController } from './gps-tracking.controller';
// NOTE: the GT06 TCP listener now lives in the standalone @edr/gps-tracker app.
// This module is REST-only — it reads gps_devices / gps_positions that the
// tracker app writes to the shared DB. Do not re-add Gt06Server here, or two
// processes would fight for the tracker socket.
@Module({
imports: [TypeOrmModule.forFeature([GpsDevice, GpsPosition])],
controllers: [GpsTrackingController],
providers: [GpsDeviceRepository, GpsPositionRepository, GpsTrackingService],
exports: [GpsTrackingService],
})
export class GpsTrackingModule {}