import { Controller, Get, UseGuards } from "@nestjs/common";
import { PatientSalutationService } from "./patient-salutation.service";
import { SkipThrottle, ThrottlerGuard } from "@nestjs/throttler";
import { AuthApiKeyGuard } from "src/auth/apiKey.guard";

@Controller("patient_salutation")
export class PatientSalutationController {
  constructor(
    private readonly patientSalutationService: PatientSalutationService
  ) {}

  @UseGuards(AuthApiKeyGuard, ThrottlerGuard)
  @SkipThrottle()
  @Get()
  findAll() {
    return this.patientSalutationService.findAll();
  }
}
