1
0
forked from PGL/Clyde

added GET /user/{id}

This commit is contained in:
2024-03-17 21:48:58 +01:00
parent 7a23dcc96a
commit 345599888d
2 changed files with 14 additions and 0 deletions

View File

@@ -122,4 +122,8 @@ public class UserService {
public Iterable<User> getAllTeachers (){return userRepo.findAllTeachers();}
public Iterable<User> getAllStudents(){return userRepo.findAllStudents();}
public User getUserById(long id) {
return userRepo.findById(id);
}
}