diff options
| author | diogo464 <[email protected]> | 2025-05-28 20:52:27 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2025-05-28 20:52:27 +0100 |
| commit | acd28a9a689998b5b66f0364d4a434b3e0fdff3d (patch) | |
| tree | 34721d085150f0a769b343e7a9ad3f36d9a04f42 /app.py | |
| parent | 76a67395e6c67a2d730e7027e41a5e056c4c0256 (diff) | |
added favicon
Diffstat (limited to 'app.py')
| -rw-r--r-- | app.py | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -28,6 +28,12 @@ def script(): | |||
| 28 | return send_from_directory(".", "script.js") | 28 | return send_from_directory(".", "script.js") |
| 29 | 29 | ||
| 30 | 30 | ||
| 31 | @app.route("/favicon.ico") | ||
| 32 | def favicon(): | ||
| 33 | """Serve the favicon.""" | ||
| 34 | return send_from_directory(".", "favicon.ico") | ||
| 35 | |||
| 36 | |||
| 31 | @app.route("/", methods=["POST"]) | 37 | @app.route("/", methods=["POST"]) |
| 32 | def generate_files(): | 38 | def generate_files(): |
| 33 | """Handle configuration submission and execute bonsai.""" | 39 | """Handle configuration submission and execute bonsai.""" |
