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.

942 B
Raw Blame
import { MemoriesModule } from '../memories/memories.module';
import { StorageModule } from '../storage/storage.module';
import { PhotosStorageRefsService } from './photos-storage-refs.service';
import { PhotosController } from './photos.controller';
import { PhotosService } from './photos.service';
import { TrekPhotosModule } from './trek-photos.module';
import { Module } from '@nestjs/common';

/**
 * /api/photos — the trek_photo read surface. Access control and the byte
 * fetching both come from the memories domain, which owns provider dispatch;
 * the row store comes from TrekPhotosModule, which memories imports too. That
 * shared leaf is what keeps this a straight line instead of a forwardRef.
 */
@Module({
  imports: [TrekPhotosModule, MemoriesModule, StorageModule],
  controllers: [PhotosController],
  providers: [PhotosService, PhotosStorageRefsService],
  exports: [TrekPhotosModule],
})
export class PhotosModule {}