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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user