コード例 #1
0
def all_restaurans_JSON():
    restaurants = Restaurant.get_all()
    return jsonify(restaurants=[r.serialize for r in restaurants])
コード例 #2
0
def all_restaurants():
    restaurants = Restaurant.get_all()
    return render_template('all-restaurants.html', restaurants=restaurants)