import { Controller, Get, UseGuards } from '@nestjs/common';
import { CountryCodeService } from './country-code.service';
import { SkipThrottle, ThrottlerGuard } from '@nestjs/throttler';
import { AuthApiKeyGuard } from 'src/auth/apiKey.guard';

@Controller('country_code')
export class CountryCodeController {
  constructor(private readonly countryCodeService: CountryCodeService) { }
  @UseGuards(AuthApiKeyGuard, ThrottlerGuard)
  @SkipThrottle()
  @Get()
  findAll() {
    return this.countryCodeService.findAll();
  }

}
