Files
TREK/server/src/nest/photos/photos.module.ts
T
Maurice 095bed2db8 feat(storage): let every owner of an upload column tell the reclaim pass what it still names
Trips, collections, places, the contribution queue, journeys, photos, trip
files and users each register a reference source from their own domain. A
source reads its own columns and parses every spelling they hold through the
storage helpers, and the free-form columns claim every reclaimable category,
since a cover or an image can point into any of them. The contribution queue
joins the ledger as its own source, because place-contrib owns that table.
2026-11-01 13:59:19 +01:00

22 lines
942 B
TypeScript

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 {}