import { Module } from '@nestjs/common';
import { CommonController } from './common.controller';
import { CommonService } from './common.service';
import { JwtStrategy } from './jwt/jwt.strategy';
import { JwtAuthGuard } from './guards/jwt-auth.guard';
import { AllExceptionsFilter } from './filters/all-exceptions.filter';
import { LoggingInterceptor } from './interceptors/logging.interceptor';
import { TransformInterceptor } from './interceptors/transform.interceptor';

@Module({
  controllers: [CommonController],
  providers: [
    CommonService,
    JwtStrategy,
    JwtAuthGuard,
    AllExceptionsFilter,
    LoggingInterceptor,
    TransformInterceptor,
  ],
  exports: [
    JwtStrategy,
    JwtAuthGuard,
    AllExceptionsFilter,
    LoggingInterceptor,
    TransformInterceptor,
  ],
})
export class CommonModule {}
