1
0
mirror of https://github.com/pcvolkmer/mv64e-etl-processor synced 2025-09-13 17:02:52 +00:00

refactor: rename template attribute to reflect content

This commit is contained in:
2024-07-15 11:51:33 +02:00
parent 370ea87095
commit 3f1bb4f4e2
2 changed files with 15 additions and 15 deletions

View File

@@ -51,14 +51,14 @@ class HomeController(
return "index"
}
@GetMapping(path = ["patient/{patientId}"])
@GetMapping(path = ["patient/{patientPseudonym}"])
fun byPatient(
@PathVariable patientId: String,
@PathVariable patientPseudonym: String,
@PageableDefault(page = 0, size = 20, sort = ["processedAt"], direction = Sort.Direction.DESC) pageable: Pageable,
model: Model
): String {
val requests = requestService.findRequestByPatientId(PatientPseudonym(patientId), pageable)
model.addAttribute("patientId", patientId)
val requests = requestService.findRequestByPatientId(PatientPseudonym(patientPseudonym), pageable)
model.addAttribute("patientPseudonym", patientPseudonym)
model.addAttribute("requests", requests)
return "index"