feat: Introduce admin reference value types management in API and UI
Deploy Development / deploy (push) Successful in 54s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 16s

- Added new routes and API endpoints for managing reference value types in the admin section.
- Updated the frontend to include navigation and components for reference value types management.
- Enhanced the backend to support the new reference value types in the data layer and versioning.
This commit is contained in:
Lars committed 2026-04-06 19:51:23 +02:00
1 parent f0e6fd04fb
commit ab616ba044
7 files changed
+570 -1

No files matched your search

+6
View File
@@ -48,6 +48,12 @@ export const api = {
updateProfileReferenceValue: (id, d) => req(`/profile-reference-values/${id}`, jput(d)),
deleteProfileReferenceValue: (id) => req(`/profile-reference-values/${id}`, { method: 'DELETE' }),
// Admin: Referenzwert-Typen (Katalog)
adminListReferenceValueTypes: () => req('/admin/reference-value-types'),
adminCreateReferenceValueType: (d) => req('/admin/reference-value-types', json(d)),
adminUpdateReferenceValueType: (id, d) => req(`/admin/reference-value-types/${id}`, jput(d)),
adminDeleteReferenceValueType: (id) => req(`/admin/reference-value-types/${id}`, { method: 'DELETE' }),
// Weight
listWeight: (l=365) => req(`/weight?limit=${l}`),
upsertWeight: (date,weight,note='') => req('/weight',json({date,weight,note})),