fix: correct route for form submission
This commit is contained in:
@@ -13,7 +13,7 @@ module.exports = (contactController, securityMw) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Define the route for form submissions with all middleware
|
// Define the route for form submissions with all middleware
|
||||||
router.post('/submit-form',
|
router.post('/',
|
||||||
apiLimiter,
|
apiLimiter,
|
||||||
// The security middleware is now a separate step,
|
// The security middleware is now a separate step,
|
||||||
// containing both the honeypot check and hCaptcha verification.
|
// containing both the honeypot check and hCaptcha verification.
|
||||||
|
Reference in New Issue
Block a user