update api endpoint config and updated related tests (#26)

This commit is contained in:
cato
2022-06-14 19:33:28 +02:00
committed by GitHub
parent 7bfdf7a3e0
commit ebfd1b78e5
9 changed files with 99 additions and 158 deletions

View File

@@ -6,7 +6,6 @@ import org.springframework.stereotype.Service;
import whattocook.repositories.ItemRepository;
import whattocook.services.ItemService;
import java.util.List;
import java.util.Optional;
@Service
@@ -36,7 +35,7 @@ public class ItemServiceImpl implements ItemService {
}
@Override
public List<Item> findAll() {
public Iterable<Item> findAll() {
return itemRepository.findAll();
}
}