import { Global, Module } from '@nestjs/common';
import { ModulesController } from './modules.controller';
import { ModulesService } from './modules.service';

/**
 * ModulesModule — global module that manages feature flags per club.
 *
 * Exported globally so that ModuleGuard can inject ModulesService
 * without explicitly importing this module in every feature module.
 */
@Global()
@Module({
  controllers: [ModulesController],
  providers: [ModulesService],
  exports: [ModulesService],
})
export class ModulesModule {}
