Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

668 B
Raw Blame
import { JOURNEY_ACCESS } from '../realtime/journey-access.types';
import { JourneyDomainModule } from './journey-domain.module';
import { JourneyDomainService } from './journey-domain.service';
import { Global, Module } from '@nestjs/common';

/**
 * Binds the realtime gateway's JOURNEY_ACCESS port to JourneyDomainService.
 * Global so RealtimeGatewayModule resolves it without importing the journey
 * domain; AppModule imports it next to the gateway module.
 */
@Global()
@Module({
  imports: [JourneyDomainModule],
  providers: [{ provide: JOURNEY_ACCESS, useExisting: JourneyDomainService }],
  exports: [JOURNEY_ACCESS],
})
export class JourneyAccessModule {}