I have been stuck for a while in Exercise Tracker project in this part:
" You can
/api/users/:_id/exercises with form data
duration , and optionally
date . If no date is supplied, the current date will be used. The response returned will be the user object with the exercise fields added."
I don’t understand how can i send a parameter with the POST request from an HTML form. Or should i use some on submit function and then send a post request with fetch/axios ?
Thank you in advance !
Challenge: Exercise Tracker
Link to the challenge: