serving images
This commit is contained in:
parent
2dd0f8caa4
commit
f7c68bd2c8
6
app.py
6
app.py
@ -34,12 +34,12 @@ def show_app():
|
||||
|
||||
#Retrieve Monster Sprites
|
||||
@app.route('/img/monster/<selected_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")
|
||||
|
Loading…
Reference in New Issue
Block a user