Added error for 404

This commit is contained in:
ZKWolf 2024-07-21 00:26:02 +02:00
parent ecf8ed5daf
commit 59d0410895

View File

@ -44,7 +44,8 @@ def debug_404(e):
f"<Endpoint: {response_endpoint}>"
f"<Methode: {sanitize_input(request.method)}>"
f"<JSON: {response_json}>"
f"<IP: {user_ip}>")
f"<IP: {user_ip}>"
f"<Error: {e}>")
return jsonify({"message": "Endpoint not found"}), 404