diff --git a/server/src/routes/order/index.js b/server/src/routes/order/index.js index 220cd84..22c926f 100644 --- a/server/src/routes/order/index.js +++ b/server/src/routes/order/index.js @@ -11,6 +11,7 @@ router.post("/carts", authenticate, asyncHandler(orderController.createOrderFrom router.post("/payments", authenticate, asyncHandler(orderController.payOrderDirectly)) router.get("/:user_id/pending", authenticate, asyncHandler(orderController.getPendingOrderByUser)) router.get("/:user_id/complete", authenticate, asyncHandler(orderController.getCompleteOrderByUser)) +router.get("/:user_id/canceled", authenticate, asyncHandler(orderController.getCanceledOrderByUser)) router.post("/vouchers", authenticate, asyncHandler(orderController.applyVoucherToOrder)) router.put("/vouchers", authenticate, asyncHandler(orderController.removeVoucherFromOrder)) router.get("/:order_id", authenticate, asyncHandler(orderController.getDetailOrderByUser))