import { Module } from '@nestjs/common';
import { ThrottlerModule } from '@nestjs/throttler';
import { CertificatesModule } from '../certificates/certificates.module';
import { DeviceMqttAuthController } from './device-mqtt-auth.controller';
import { DeviceMqttAuthService } from './device-mqtt-auth.service';

@Module({
  imports: [CertificatesModule, ThrottlerModule.forRoot([{ ttl: 60_000, limit: 10 }])],
  controllers: [DeviceMqttAuthController],
  providers: [DeviceMqttAuthService],
})
export class DeviceMqttAuthModule {}
