diff --git a/server/src/routes/order/index.js b/server/src/routes/order/index.js index 3a0eb87..2b566d1 100644 --- a/server/src/routes/order/index.js +++ b/server/src/routes/order/index.js @@ -6,6 +6,7 @@ const { asyncHandler } = require('../../auth/checkAuth') const orderController = require("../../controllers/order.controller") router.post("/", asyncHandler(orderController.createOrderByTourId)) +router.post("/payment", asyncHandler(orderController.payOrderDirectly)) router.post("/:order_id/applyVoucher", asyncHandler(orderController.applyVoucherToOrder)) module.exports = router \ No newline at end of file