move api call, remove delete requested wine button, rename emit

This commit is contained in:
Adrian Thompson
2020-09-04 15:42:03 +02:00
parent 88e42cb87a
commit ed6ac2ac01
7 changed files with 12 additions and 12 deletions

View File

@@ -104,12 +104,6 @@ router.route("/highscore/statistics").get(async (req, res) => {
res.json(highscore);
});
router.route("/wines/all-requested-wines").get(async (req, res) => {
const allWines = await RequestedWine.find({}).populate("wine");
res.json(allWines);
});
router.route("/wines/statistics").get(async (req, res) => {
const wines = await Wine.find();