import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { User } from '@/entities/user.entity';
import { UserAuthService } from './services/implements/user-auth.service';
import { UserAuthMiddleware } from './middlewares/implements/user-authentication.middleware';
import { UserAuthenticationController } from './controllers/implements/user-authentication.controller';

@Module({
  imports: [TypeOrmModule.forFeature([User])],
  providers: [UserAuthService, UserAuthMiddleware],
  exports: [UserAuthService, UserAuthMiddleware],
  controllers: [UserAuthenticationController],
})
export class AuthenticationModule {}
