@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user