How can I use push() with router.post to populate a subdocument with contents from an HTML form?
I’m making a fitness log MEN CRUD app and am trying to push data to a MongoDB subdocument using an HTML form. When adding (creating) a new workout, the user is presented with two options between ‘run’ or ‘weight training’. The button selection takes the user to a form to fill in relevant data like date, time, distance.