import { Module } from '@nestjs/common' ; import { MulterModule } from '@nestjs/platform-express' ; import { ConfigService } from 'nestjs-config' ; import { AlbumController } from './album.controller' ; import { AlbumService } from './album.service' ; @ Module ( { imports : [ MulterModule . registerAsync ( { useFactory : ( config ) => config . get ( 'file' ) , inject : [ ConfigService ] , } ) , ] , controllers : [ AlbumController ] , providers : [ AlbumService ] , } ) export class AlbumModule { }