1 parent 15f214d commit 4176af7Copy full SHA for 4176af7
1 file changed
app/api/contact/route.ts
@@ -5,7 +5,6 @@ import { NextResponse } from "next/server";
5
const ContactSchema = z.object({
6
name: z.string().trim().min(1),
7
email: z.string().trim().email(),
8
- subject: z.string().trim().min(1),
9
message: z.string().trim().min(1),
10
});
11
@@ -45,7 +44,7 @@ export async function POST(req: NextRequest) {
45
44
const timeout = setTimeout(() => controller.abort(), UPSTREAM_TIMEOUT_MS);
46
47
try {
48
- const upstream = await fetch(`${apiUrl}/contact`, {
+ const upstream = await fetch(`${apiUrl}/contact/send`, {
49
method: "POST",
50
headers: {
51
"Content-Type": "application/json",
0 commit comments