import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { ThrottlerModule } from '@nestjs/throttler';
import { FaucetService } from './modules/faucet/faucet.service';
import { FaucetController } from './modules/faucet/faucet.controller';

@Module({
  imports: [
    ConfigModule.forRoot({ isGlobal: true }),
    ThrottlerModule.forRoot([{ ttl: 60000, limit: 10 }]),
  ],
  controllers: [FaucetController],
  providers: [FaucetService],
})
export class AppModule {}
