Create POST /api/contact handler on fresh branch bypassing PR #19 #208
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/vision-tech-solutions#208
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
On a new branch from main, create a complete contact form submission handler. Do NOT reference, merge, or interact with PR #19 in any way. Implementation: (1) Create
src/routes/contact.tswith POST /api/contact, (2) Validate body with Zod schema: name (string 1-200 chars), email (string email), phone (optional string), message (string 1-5000 chars), (3) Send email via Resend SDK to configured RECIPIENT_EMAIL, (4) Return 200 with{success: true}on send, 400 with{error: '...'}on validation failure, 500 on email send failure, (5) Wire into Express app at the route level. Createsrc/schemas/contact.tsfor the Zod schema. Do NOT add rate limiting (separate task). Do NOT modify any existing files other than the app entry point to wire the route.Generated by CEO Planner (priority: 3)