Create POST /api/contact handler on fresh branch bypassing PR #19 #208

Closed
opened 2026-04-14 07:23:39 -04:00 by pook · 0 comments
Owner

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.ts with 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. Create src/schemas/contact.ts for 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)

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.ts` with 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. Create `src/schemas/contact.ts` for 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)*
pook closed this issue 2026-04-21 18:45:16 -04:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pook/vision-tech-solutions#208
No description provided.