diff --git a/app.py b/app.py index 08d4b36..c9e829e 100644 --- a/app.py +++ b/app.py @@ -22,7 +22,7 @@ app.register_blueprint(get_monsters_bp) app.register_blueprint(get_monster_stats_bp) # Register Serve Content Blueprints -app.register_blueprint(serve_img_bp) +app.register_blueprint(serve_content) # Register Other Views Blurprints (HTML Render Templates) app.register_blueprint(breed_info_bp) diff --git a/src/views/serve_content.py b/src/views/serve_content.py index 7516b2b..593f3d2 100644 --- a/src/views/serve_content.py +++ b/src/views/serve_content.py @@ -1,14 +1,13 @@ from flask import send_from_directory, Blueprint -serve_img_bp = Blueprint('favicon', __name__) -serve_monster_sprite_bp = Blueprint('monster_sprite', __name__) +serve_content = Blueprint('favicon', __name__) #Serve Monster Sprites -@serve_img_bp.route('/img/monster/.png') +@serve_content.route('/img/monster/.png') def serve_monster_sprite(selected_monster): return send_from_directory('static/img/monster/', f'{selected_monster}.png') #Serve Favicon -@serve_img_bp.route('/img/favicon.ico') +@serve_content.route('/img/favicon.ico') def serve_favicon(): return send_from_directory( '','static/img/favicon.ico') \ No newline at end of file