def showRestaurants():
    restaurants = rest_crud.showRestaurants()
    if 'username' not in login_session:
        return render_template('publicrestaurants.html', restaurants=restaurants)
    else:
        return render_template('restaurants.html', restaurants=restaurants)
def allRestaurantsJSON():
    all_rests = rest_crud.showRestaurants()
    return jsonify(Restaurants=[rest.serialize for rest in all_rests])