0

);
orderRouter.get(
\"/mine\",
isAuth,
expressAsyncHandler(async (req, res) => {
constorders = awaitOrder.find({ user:req.user._id });
res.send(orders);
})
);
orderRouter.get(
\"/:id\",
isAuth,
expressAsyncHandler(async (req, res) => {
constorder = awaitOrder.findById(req.params.id);
if (order) {
res.send(order);
} else {
res.status(404).send({ message: \"Order Not Found\" });
}
})
);

Can you tell me why can not put the mine route after the id route please.

quangnv.0212@gmail.com Asked question December 26, 2022