diff --git a/app.py b/app.py index a941879..a32940f 100644 --- a/app.py +++ b/app.py @@ -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) diff --git a/static/icon-512.png b/static/icon-512.png new file mode 100644 index 0000000..02335ef Binary files /dev/null and b/static/icon-512.png differ diff --git a/static/icon.png b/static/icon.png new file mode 100644 index 0000000..93e92fc Binary files /dev/null and b/static/icon.png differ diff --git a/static/sw.js b/static/sw.js new file mode 100644 index 0000000..687d21f --- /dev/null +++ b/static/sw.js @@ -0,0 +1,4 @@ +// Service Worker minimal pour permettre l'installation PWA +self.addEventListener('fetch', function(event) { + // On laisse les requêtes passer normalement +}); diff --git a/templates/index.html b/templates/index.html index dad7230..90fbf46 100644 --- a/templates/index.html +++ b/templates/index.html @@ -7,6 +7,26 @@ Ciné Toulouse + + + + + + + + +