Select Git revision
getUser.java
-
Julien Wittouck authoredJulien Wittouck authored
getUser.java 341 B
@GetMapping("/otherTrainers")
public List<Trainers> getOtherTrainers(Principal principal) {
return trainerRepository
.findOtherTrainers(principal.getName());
}
@GetMapping("/otherTrainers")
public List<Trainers> getOtherTrainers() {
SecurityContext
return trainerRepository
.findOtherTrainers(principal.getName());
}