From 4c1dd726597f5b1f83ee6e75c32f04f39fceca20 Mon Sep 17 00:00:00 2001 From: Sven Carstensen Date: Wed, 18 Mar 2026 11:47:18 +0100 Subject: [PATCH] fix: Correct invoice template API endpoints from /admin to /session The frontend was using /admin/invoice-template but the backend endpoints are at /api/session/invoice-template. This caused 404 errors and the misleading message 'Template-Speicherung ist auf diesem Server nicht verfuegbar'. --- frontend/src/pages/InvoiceTemplatePage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/InvoiceTemplatePage.tsx b/frontend/src/pages/InvoiceTemplatePage.tsx index e0297ec..fd464cb 100644 --- a/frontend/src/pages/InvoiceTemplatePage.tsx +++ b/frontend/src/pages/InvoiceTemplatePage.tsx @@ -1150,7 +1150,7 @@ export default function InvoiceTemplatePage() { setTemplateError(null); setIsTemplateLoading(true); - void apiGet("/admin/invoice-template") + void apiGet("/session/invoice-template") .then((response) => { if (cancelled) { return; @@ -1478,7 +1478,7 @@ export default function InvoiceTemplatePage() { setIsTemplateSaving(true); try { - const response = await apiPut("/admin/invoice-template", { + const response = await apiPut("/session/invoice-template", { elements, }); const savedElements = normalizeTemplateElements(response.elements);