Get wines by id or search with wine object.

Search with wine object tries to find wines matching name, year and id.
This is used for finding a wine from a prelottery wine where their _id
do not match.
This commit is contained in:
2021-02-18 20:44:54 +01:00
parent 930c458d9c
commit 4bd3b688e9
2 changed files with 27 additions and 2 deletions

View File

@@ -27,7 +27,8 @@ router.get("/requests", setAdminHeaderIfAuthenticated, requestController.allRequ
router.post("/request", requestController.addRequest);
router.delete("/request/:id", mustBeAuthenticated, requestController.deleteRequest);
// router.get("/wines", wineController.all); // sort = by-date, by-name, by-occurences
router.get("/wines", wineController.allWines); // sort = by-date, by-name, by-occurences
router.get("/wine/:id", wineController.wineById); // sort = by-date, by-name, by-occurences
// router.update("/wine/:id", mustBeAuthenticated, wineController.update);
router.get("/history", historyController.all);