Skip to content

Commit

Permalink
add route payment directyly
Browse files Browse the repository at this point in the history
  • Loading branch information
augustus281 committed Mar 31, 2024
1 parent 5c3bed6 commit a61cafe
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 @@ -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

0 comments on commit a61cafe

Please sign in to comment.