Progressive Web App + icon
This commit is contained in:
@@ -200,5 +200,15 @@ def refresh():
|
||||
update_all_data()
|
||||
return redirect(url_for('index'))
|
||||
|
||||
from flask import send_from_directory
|
||||
|
||||
@app.route('/manifest.json')
|
||||
def serve_manifest():
|
||||
return send_from_directory('static', 'manifest.json')
|
||||
|
||||
@app.route('/static/sw.js')
|
||||
def serve_sw():
|
||||
return send_from_directory('static', 'sw.js')
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host='0.0.0.0', port=5000)
|
||||
|
||||
Reference in New Issue
Block a user