Is your feature request related to a problem? Please describe.
The newsletter subscription form in the footer currently validates email addresses on the client side but does not submit data to any backend service. As a result, users can enter their email and receive a success indication without actually being subscribed to a newsletter, leading to a broken user experience and loss of potential subscribers.
Describe the solution you'd like
Create a dedicated API endpoint (e.g., /api/newsletter/subscribe) that processes newsletter subscription requests from the footer form.
The endpoint should:
- Validate incoming email addresses.
- Prevent duplicate subscriptions.
- Store subscriber information in a database table or forward it to an email marketing provider such as Resend or Mailchimp.
- Return appropriate success and error responses.
- Support future analytics and subscriber management features.
The footer form should be updated to call this endpoint and display meaningful feedback based on the API response.
Describe alternatives you've considered
No response
Additional context
No response
Code of Conduct
Is your feature request related to a problem? Please describe.
The newsletter subscription form in the footer currently validates email addresses on the client side but does not submit data to any backend service. As a result, users can enter their email and receive a success indication without actually being subscribed to a newsletter, leading to a broken user experience and loss of potential subscribers.
Describe the solution you'd like
Create a dedicated API endpoint (e.g.,
/api/newsletter/subscribe) that processes newsletter subscription requests from the footer form.The endpoint should:
The footer form should be updated to call this endpoint and display meaningful feedback based on the API response.
Describe alternatives you've considered
No response
Additional context
No response
Code of Conduct