feat(frontend): Behandlungen-Modul (Modul 8)
Mobile-optimiertes Erfassungsformular unter /treatments/new sowie "Behandlungen"-Ansicht auf der Volk-Detailseite.
This commit is contained in:
1 parent
61e0bbe794
commit
1f71ac9e3c
6 files changed
+261
-1
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import { apiFetch } from "@/lib/auth/api-client";
|
||||
import { CreateTreatmentInput, Treatment } from "./types";
|
||||
|
||||
export function fetchColonyTreatments(colonyId: string): Promise<Treatment[]> {
|
||||
return apiFetch<Treatment[]>(`/colonies/${colonyId}/treatments`);
|
||||
}
|
||||
|
||||
export function createTreatment(input: CreateTreatmentInput): Promise<Treatment> {
|
||||
return apiFetch<Treatment>("/treatments", {
|
||||
method: "POST",
|
||||
body: JSON.stringify(input),
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user