from flask import send_from_directory, Blueprint serve_content = Blueprint('favicon', __name__) #Serve Monster Sprites @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_content.route('/img/favicon.ico') def serve_favicon(): return send_from_directory( '','static/img/favicon.ico')