impressum datenschutz added

This commit is contained in:
2026-03-25 15:25:34 +01:00
parent fd55742c57
commit a15772cb54
12 changed files with 493 additions and 3 deletions
+18
View File
@@ -1396,6 +1396,24 @@ export const gdprApi = {
const res = await api.put<ApiResponse<void>>('/gdpr/authorization-template', { html });
return res.data;
},
// Impressum
getImprint: async () => {
const res = await api.get<ApiResponse<{ html: string }>>('/gdpr/imprint');
return res.data;
},
updateImprint: async (html: string) => {
const res = await api.put<ApiResponse<void>>('/gdpr/imprint', { html });
return res.data;
},
// Website-Datenschutzerklärung
getWebsitePrivacyPolicy: async () => {
const res = await api.get<ApiResponse<{ html: string }>>('/gdpr/website-privacy-policy');
return res.data;
},
updateWebsitePrivacyPolicy: async (html: string) => {
const res = await api.put<ApiResponse<void>>('/gdpr/website-privacy-policy', { html });
return res.data;
},
// Consent-Link senden
sendConsentLink: async (customerId: number, channel: string) => {
const res = await api.post<ApiResponse<{ url: string; channel: string; hash: string }>>(`/gdpr/customer/${customerId}/send-consent-link`, { channel });