import { Controller, Post, Body } from '@nestjs/common';
import { GetAbhaAddressOfPatientService } from './get-abha-address-of-patient.service';

@Controller('get-abha-address-of-patient')
export class GetAbhaAddressOfPatientController {
  constructor(private readonly getAbhaAddressOfPatientService: GetAbhaAddressOfPatientService) { }

  @Post()
  findAll(@Body('hospital_id') hospital_id: number, @Body('patient_id') patient_id: number) {
    return this.getAbhaAddressOfPatientService.findAll(hospital_id, patient_id);
  }

}
