Beispiel #1
0
def get_characters():
    characters = DAO.find_all(Character)
    return jsonify(
        characters=[character.serialize for character in characters])
Beispiel #2
0
def get_games():
    games = DAO.find_all(Game)
    return make_response(jsonify(games=[game.serialize for game in games]))