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) ---