import { Module, Global } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Admin } from '@/entities/admin.entity';
import { AdminAuthService } from './auth.service';
import { AdminAuthController } from './auth.controller';

@Global()
@Module({
  imports: [TypeOrmModule.forFeature([Admin])],
  controllers: [AdminAuthController],
  providers: [AdminAuthService],
  exports: [AdminAuthService],
})
export class AdminAuthModule {}
