import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { SetupController } from './setup.controller';
import { SetupService } from './setup.service';
import { ServerConnection } from '../../entities/server-connection.entity';
import { ServerConfig } from '../../entities/server-config.entity';
import { NotificationsConfig } from '../../entities/notifications-config.entity';
import { PublicSiteConfig } from '../../entities/public-site-config.entity';
import { AlertConfig } from '../../entities/alert-config.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      ServerConnection,
      ServerConfig,
      NotificationsConfig,
      PublicSiteConfig,
      AlertConfig,
    ]),
  ],
  controllers: [SetupController],
  providers: [SetupService],
  exports: [SetupService],
})
export class SetupModule {}
