Add honeypot, spam protection to contact form

This commit is contained in:
2026-05-02 11:24:11 +12:00
parent cd8d581f7a
commit 3587ba7f26
25 changed files with 553 additions and 41 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ const routes = [
'/puppy-visits',
'/our-pricing',
'/about',
'/booking',
'/contact-us',
'/terms-and-conditions',
'/privacy-policy'
];
+1
View File
@@ -15,6 +15,7 @@ describe('sitemap endpoint', () => {
expect(response.headers.get('content-type')).toBe('application/xml; charset=utf-8');
expect(body).toContain('<loc>https://www.goodwalk.co.nz/</loc>');
expect(body).toContain('<loc>https://www.goodwalk.co.nz/contact-us</loc>');
expect(body).toContain('<loc>https://www.goodwalk.co.nz/privacy-policy</loc>');
expect(body).toContain('<lastmod>2026-05-01</lastmod>');
expect(body.match(/<url>/g)).toHaveLength(9);