/** * Returns all notes in database * * This method uses the note repository to fetch a list of all notes in the * database and return that list. * * @since 1.0.0 * * @return Response A HTTP Response object formatted as JSON */ public function index() { return $this->notes->listNotes(); }