def restaurantMenu(restaurant_id): restaurant = getRestaurantById(restaurant_id) items = getMenuItemsByRestaurantId(restaurant_id) return render_template('menu.html', restaurant = restaurant, items = items)
def restaurantMenuJSON(restaurant_id): items = getMenuItemsByRestaurantId(restaurant_id) return jsonify(MenuItems=[i.serialize for i in items])