Solution
@app.route('/restaurant/')
def places(city):
@app.route('/restaurant/')
def places(city):
for x in restaurant:
if x["city"] == city:
return x
return {'city': None}
@app.route('/restaurant/')
def places(city):
@app.route('/restaurant/')
def places(city):
for x in restaurant:
if x["city"] == city:
return x
return {'city': None}