Wine repository gets function for all wines.

This commit is contained in:
2021-02-17 19:17:36 +01:00
parent 7292cf7983
commit 3d99a3e5f2

View File

@@ -25,6 +25,11 @@ const addWine = async wine => {
}
};
module.exports = {
addWine
const allWines = () => {
return Wine.find();
};
module.exports = {
addWine,
allWines
};