api: add auto mode to offroute endpoint validation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Matt 2026-05-08 22:37:49 +00:00
commit 686b35710a

View file

@ -2768,8 +2768,8 @@ def api_offroute():
# Parse options
mode = data.get("mode", "foot")
if mode not in ("foot", "mtb", "atv", "vehicle"):
return jsonify({"status": "error", "message": "mode must be foot, mtb, atv, or vehicle"}), 400
if mode not in ("auto", "foot", "mtb", "atv", "vehicle"):
return jsonify({"status": "error", "message": "mode must be auto, foot, mtb, atv, or vehicle"}), 400
boundary_mode = data.get("boundary_mode", "pragmatic")
if boundary_mode not in ("strict", "pragmatic", "emergency"):