import { Module } from '@nestjs/common';
import { MikroOrmModule } from '@mikro-orm/nestjs';
import { Icon } from './entities/icon.entity';
import { Group } from './entities/group.entity';
import { IconService } from './providers/icon.service';
import { GroupService } from './providers/group.service';
import { IconRepository } from './repositories/icon.repository';
import { GroupRepository } from './repositories/group.repository';
import { IconsController } from './controllers/icons.controller';
import { JwtModule } from '@nestjs/jwt';
import { UploaderModule } from '../uploader/uploader.module';

@Module({
  imports: [MikroOrmModule.forFeature([Icon, Group]), JwtModule, UploaderModule],
  controllers: [IconsController],
  providers: [IconService, GroupService, IconRepository, GroupRepository],
  exports: [IconRepository, GroupRepository, IconService, GroupService],
})
export class IconsModule {}
