From 0e647380a8973791ed96822fddc659a2b97b668f Mon Sep 17 00:00:00 2001 From: Ulisses Lima Date: Tue, 7 Mar 2023 12:45:02 -0300 Subject: [PATCH] changing endpoints visibility to public --- .../reactive/webflux/annotation/EmployeeController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-reactive-modules/spring-reactive/src/main/java/com/baeldung/reactive/webflux/annotation/EmployeeController.java b/spring-reactive-modules/spring-reactive/src/main/java/com/baeldung/reactive/webflux/annotation/EmployeeController.java index 23aacfdd95..646a93ac48 100644 --- a/spring-reactive-modules/spring-reactive/src/main/java/com/baeldung/reactive/webflux/annotation/EmployeeController.java +++ b/spring-reactive-modules/spring-reactive/src/main/java/com/baeldung/reactive/webflux/annotation/EmployeeController.java @@ -22,17 +22,17 @@ public class EmployeeController { } @GetMapping("/{id}") - private Mono getEmployeeById(@PathVariable String id) { + public Mono getEmployeeById(@PathVariable String id) { return employeeRepository.findEmployeeById(id); } @GetMapping - private Flux getAllEmployees() { + public Flux getAllEmployees() { return employeeRepository.findAllEmployees(); } @PostMapping("/update") - private Mono updateEmployee(@RequestBody Employee employee) { + public Mono updateEmployee(@RequestBody Employee employee) { return employeeRepository.updateEmployee(employee); }