So when I submit from the form it is pulling the right info from req.body but I don’t quite understand why another GET request is being fired off immediately after the POST request is dealt with. I feel it may have something to do with the res.json() being used in the POST route but would love a clear explanation.
Code and console log history:
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.96.36.199 Safari/537.36
Challenge: Get Query Parameter Input from the Client
Link to the challenge: