From c24c00b307d629b617bd4a637741ea0ad45f6294 Mon Sep 17 00:00:00 2001 From: "Adrian A. Baumann" Date: Sun, 1 Mar 2026 16:27:11 +0100 Subject: [PATCH] feat: add regenerateToken to configsApi --- frontend/src/api.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/api.ts b/frontend/src/api.ts index c187c08..d3d0839 100644 --- a/frontend/src/api.ts +++ b/frontend/src/api.ts @@ -38,6 +38,8 @@ export const configsApi = { api.post(`/configs/${id}/generate?format=${format}`, null, { responseType: format === 'zip' ? 'blob' : 'json', }), + regenerateToken: (id: number) => + api.post<{ download_token: string }>(`/configs/${id}/regenerate-token`), } // --- Nested resources (zones, interfaces, policies, rules, snat) ---