Here is my gist file: https://gist.github.com/loso-nd/31fc7fe27fc6f92ccae3c5d6cad162a5
Also my post on StackOverFlow https://stackoverflow.com/questions/77404161/next-js-react-error-when-hitting-api-post-500-internal-server-error
The issue I am have is the second one of my created api routes are throwing an error but the first one is working perfectly as expect. Looking of any clues that might help.
Gist
Next.JS / React Error: when hitting api (POST 500 (Internal Server Error) ) - Api route for Employee:
Stack Overflow
I am working on this app and getting a 500 internal server Error with one of my APIs
ERROR Persistent: ( http://localhost:3000/api/employee/new)
WORK as expected: ( http://localhost:3000/api/prompt...