79808982

Date: 2025-11-04 13:46:51
Score: 1
Natty:
Report link

The file structure is correct.

You just need to use the full URL in the fetch request:

const res = await fetch("http://localhost:3000/api/contact", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify(data),
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rasul Navir