feat: Introduce admin reference value types management in API and UI
- 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:
1 parent
f0e6fd04fb
commit
ab616ba044
7 files changed
+570
-1
No files matched your search
@@ -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})),
|
||||
|
||||
Reference in new issue
Block a user