dwm-app/src/views/serve_content.py

13 lines
444 B
Python
Raw Normal View History

from flask import send_from_directory, Blueprint
2024-02-21 20:23:44 +00:00
serve_content = Blueprint('favicon', __name__)
#Serve Monster Sprites
2024-02-21 20:23:44 +00:00
@serve_content.route('/img/monster/<selected_monster>.png')
def serve_monster_sprite(selected_monster):
return send_from_directory('static/img/monster/', f'{selected_monster}.png')
#Serve Favicon
2024-02-21 20:23:44 +00:00
@serve_content.route('/img/favicon.ico')
def serve_favicon():
return send_from_directory( '','static/img/favicon.ico')