From f7c68bd2c852c6b399b840c6565842daeccf822d Mon Sep 17 00:00:00 2001 From: 0ceanSlim Date: Mon, 5 Feb 2024 11:01:36 -0500 Subject: [PATCH] serving images --- app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 1cf7653..bd8e0c6 100644 --- a/app.py +++ b/app.py @@ -34,12 +34,12 @@ def show_app(): #Retrieve Monster Sprites @app.route('/img/monster/.png') -def retrieve_monster_sprite(selected_monster): - return send_from_directory('static/img/monster', f'{selected_monster}.png') +def serve_monster_sprite(selected_monster): + return send_from_directory('static/img/monster/', f'{selected_monster}.png') #Retrieve Favicon @app.route('/img/favicon.ico') -def retrieve_favicon(): +def serve_favicon(): return send_from_directory( '','static/img/favicon.ico') @app.route("/get_families")