impressum datenschutz added
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user