import { apiFetch } from "@/lib/auth/api-client"; import { CreateTreatmentInput, Treatment } from "./types"; export function fetchColonyTreatments(colonyId: string): Promise { return apiFetch(`/colonies/${colonyId}/treatments`); } export function createTreatment(input: CreateTreatmentInput): Promise { return apiFetch("/treatments", { method: "POST", body: JSON.stringify(input), }); }