diff options
| author | Paul-Christian Volkmer | 2024-07-15 11:51:33 +0200 |
|---|---|---|
| committer | Paul-Christian Volkmer | 2024-07-15 11:51:33 +0200 |
| commit | 3f1bb4f4e24c7c7b7d57b640d8603242f306b720 (patch) | |
| tree | 52d9bf234c5cbaceea14eaeb09afaea66b8a4ada /src/main/kotlin/dev/dnpm/etl | |
| parent | 370ea87095bf6859b3d9623ab0f8252e10c1a9ee (diff) | |
refactor: rename template attribute to reflect content
Diffstat (limited to 'src/main/kotlin/dev/dnpm/etl')
| -rw-r--r-- | src/main/kotlin/dev/dnpm/etl/processor/web/HomeController.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/kotlin/dev/dnpm/etl/processor/web/HomeController.kt b/src/main/kotlin/dev/dnpm/etl/processor/web/HomeController.kt index 43f2f1d..5419477 100644 --- a/src/main/kotlin/dev/dnpm/etl/processor/web/HomeController.kt +++ b/src/main/kotlin/dev/dnpm/etl/processor/web/HomeController.kt @@ -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" |
