Skip to content

Commit

Permalink
init route: canceledOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
augustus281 committed Jun 1, 2024
1 parent 7e740e1 commit dcf6253
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/routes/order/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit dcf6253

Please sign in to comment.