()
| 2842 | |
| 2843 | @app.route("/api/switch", methods=["POST"]) |
| 2844 | def switch_log(): |
| 2845 | path = request.args.get("path", "") |
| 2846 | resolved = _safe_resolve(path) |
| 2847 | if not resolved or not resolved.exists(): |
| 2848 | return jsonify({"error": "Log file not found"}), 404 |
| 2849 | logs = _collect_logs(log_root_path) |
| 2850 | return jsonify({"logs": logs, "current": str(resolved)}) |
| 2851 | |
| 2852 | |
| 2853 | @socketio.on("connect") |
nothing calls this directly
no test coverage detected