@app.route('/get_all/<string:name>', methods=['GET'])
def get_info_of_person(name):
if request.method == 'GET':
person = [city for city in cities if city['name'] == name]
print(person)
return jsonify({'names_list': person[0]})
else:
return render_template('dashboard.html')
I want to capture those values form the front end using Jquery