const checkPayment = (type) => {
return (req, res, next) => {
req.type = type;
next()
};
};
router.post(
'/check-payment',
checkPayment('check'),
require('./check-payment')
);
Last active
March 9, 2022 10:45
-
-
Save galihcitta/70935c945ad3cfa0f5ce6e1a9da6489a to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment