I'm fairly new to Flask and Python, coming from a Node/Express and JS background. I'm currently trying to write an RESTful API in Flask, I was wondering if there was a Flask equivalent to res.send()?
I was also wondering if my front-end was using the Fetch API and expecting a JSON object, was there anything I had to do to convert my response (like putting the data in a Python dict)?
For Fetch requests using POST method, how would I access the request data on Flask if it's a JSON object?