flesh out getArrayFromServer and add routes for favorite and eaten foods