import { Module, Global } from '@nestjs/common';
import { AppConfigController } from './config.controller';
import { AppConfigService } from './config.service';
import { FeatureFlagService } from './feature-flag.service';
import { PrismaService } from '../../infrastructure/database/prisma.service';
import { RedisService } from '../../infrastructure/redis/redis.service';
import { AdminAuthGuard } from '../../common/guards/admin-auth.guard';
import { AdminRolesGuard } from '../../common/guards/admin-roles.guard';

@Global()
@Module({
  controllers: [AppConfigController],
  providers: [AppConfigService, FeatureFlagService, PrismaService, RedisService, AdminAuthGuard, AdminRolesGuard],
  exports: [AppConfigService, FeatureFlagService],
})
export class AppConfigModule {}
