From 63a468046e15629d263a527b392f8e11b1953e15 Mon Sep 17 00:00:00 2001 From: 0ceanSlim Date: Wed, 14 Feb 2024 17:06:40 -0500 Subject: [PATCH] removed unused code, added to-do comment --- app.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/app.py b/app.py index 8cfc6cf..8c9171f 100644 --- a/app.py +++ b/app.py @@ -39,17 +39,11 @@ def serve_monster_sprite(selected_monster): def serve_favicon(): return send_from_directory( '','static/img/favicon.ico') -#API Calls -from src.api.get_families import get_families_bp -app.register_blueprint(get_families_bp) +#TO-DO: Split the rest of these API Calls -# List All Families -#@app.route("/api/families") -#def get_families(): -# cursor = g.db.cursor() -# cursor.execute("SELECT DISTINCT name FROM families") -# families = [row[0] for row in cursor.fetchall()] -# return jsonify(families) +#API Calls +from src.api.get_families import * +app.register_blueprint(get_families_bp) # List All Monsters @app.route("/api/monsters")