Introduce `getPublicUrl` in `S3Service` for generating public URLs. Replace custom file URL generation logic across services with the new method. Add media controller for file streaming and update related tests. Adjust frontend to display user roles instead of email in the sidebar. Update environment schema to include optional `API_URL`. Fix help page contact email.
15 lines
546 B
TypeScript
15 lines
546 B
TypeScript
import { Module } from "@nestjs/common";
|
|
import { S3Module } from "../s3/s3.module";
|
|
import { MediaController } from "./media.controller";
|
|
import { MediaService } from "./media.service";
|
|
import { ImageProcessorStrategy } from "./strategies/image-processor.strategy";
|
|
import { VideoProcessorStrategy } from "./strategies/video-processor.strategy";
|
|
|
|
@Module({
|
|
imports: [S3Module],
|
|
controllers: [MediaController],
|
|
providers: [MediaService, ImageProcessorStrategy, VideoProcessorStrategy],
|
|
exports: [MediaService],
|
|
})
|
|
export class MediaModule {}
|