import ApiService from "@/services/ApiService";

const baseUrl = "public/tracking";

/**
 * Seguimiento público por folio (sin PII).
 * Respuesta API: { data, meta, errors }
 */
export const getByFolio = async (folio) => {
  const encoded = encodeURIComponent(folio);
  const response = await ApiService.get(`${baseUrl}/${encoded}`);
  return response.data;
};
