import { Module } from '@nestjs/common';
import { MulterModule } from '@nestjs/platform-express';
import { FileController } from './file.controller';
import { FileService } from './file.service';

@Module({
	imports: [
		MulterModule.register({
			limits: {
				fileSize: 100 * 1024 * 1024, // 100MB
			},
		}),
	],
	controllers: [FileController],
	providers: [FileService],
	exports: [FileService],
})
export class FileModule {}
