Implemented note listing
This commit is contained in:
@@ -29,5 +29,5 @@ func (r *NoteRepository) GetNote(id int) (models.Note, error) {
|
||||
}
|
||||
|
||||
func (r *NoteRepository) ListNotes() ([]models.Note, error) {
|
||||
return []models.Note{}, fmt.Errorf("not implemented")
|
||||
return r.store.GetAllNotes()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user