mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 18:34:09 +00:00
095bed2db8
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.
22 lines
942 B
TypeScript
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 {}
|