diff --git a/internal/repo/inMemoryRepo.go b/internal/repo/inMemoryRepo.go index d108358..2cbeff7 100644 --- a/internal/repo/inMemoryRepo.go +++ b/internal/repo/inMemoryRepo.go @@ -79,6 +79,10 @@ func (r *InMemoryRepo) GetPlayer(id model.PlayerID) (*model.Player, error) { return nil, nil } +func (r *InMemoryRepo) GetAllPlayers() ([]model.Player,error){ + return r.players, nil +} + func (r *InMemoryRepo) AddGameResult(result model.GameResult) (model.GameResultID, error) { id := model.GameResultID(strconv.Itoa(len(r.results)))