changing endpoints visibility to public

This commit is contained in:
Ulisses Lima 2023-03-07 12:45:02 -03:00
parent bd178710dc
commit 0e647380a8
1 changed files with 3 additions and 3 deletions

View File

@ -22,17 +22,17 @@ public class EmployeeController {
}
@GetMapping("/{id}")
private Mono<Employee> getEmployeeById(@PathVariable String id) {
public Mono<Employee> getEmployeeById(@PathVariable String id) {
return employeeRepository.findEmployeeById(id);
}
@GetMapping
private Flux<Employee> getAllEmployees() {
public Flux<Employee> getAllEmployees() {
return employeeRepository.findAllEmployees();
}
@PostMapping("/update")
private Mono<Employee> updateEmployee(@RequestBody Employee employee) {
public Mono<Employee> updateEmployee(@RequestBody Employee employee) {
return employeeRepository.updateEmployee(employee);
}