#Form (400 Bad Request), but API works in Postman
3 messages · Page 1 of 1 (latest)
3 messages · Page 1 of 1 (latest)
in the catch of the http handler add a console.error(error) to print out the error
in the body of the request you've put "employeeNumber" but in the handler your looking for "employeeNum"
instead of casting to type using Number(), String(), i recommend you use zod to validate the request body and form data