Skip to content
Snippets Groups Projects
Select Git revision
  • 8e61952557a2226b146c83cc054a6c946c1925f0
  • main default protected
  • feature/seconde-session
  • feature/task-build
4 results

getUser.java

Blame
  • 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());
    }