Hi Please anyone can help me? I'm using a package
"next": "13.2.4",
"next-auth": "^4.20.1",
"react": "18.2.0",
and I have submit function to register the user
async function onSubmit(values: any) {
const options = {
method: "POST",
headers: { "Content-Type": "application/json", },
body: JSON.stringify(values),
}
await fetch('/api/auth/signup', options)
.then(res => res.json())
.then((data) => {
if (data) router.push('/authentication');
});
console.log(values)
}
but when I hit submit I got this error
http://localhost:3000/api/auth/signup 404 (Not Found)
Below is my project directory