This commit is contained in:
Zeecka
2025-06-15 18:14:47 +02:00
parent 57e7b77561
commit e937d4fc11
5 changed files with 27 additions and 0 deletions
+5
View File
@@ -38,6 +38,11 @@ def too_large(_: Any) -> tuple[Response, int]:
return jsonify({"error": "Image size exceeded"}), 413
@app.errorhandler(404)
def not_found(e):
return render_template("error.html", message="Ressource not found", statuscode=404)
@app.route("/")
def index() -> str:
"""Render the main index page."""