How to render_template() in Flask after fetching request from Java Script?
i think this will help in returning JSON reponse in browser
return jsonify(res) # replace it with "return res"
lastline in your endpoint
i think this will help in returning JSON reponse in browser
return jsonify(res) # replace it with "return res"
lastline in your endpoint