feat(ui): Add import agent screen

This commit is contained in:
Richard Palethorpe
2025-04-01 22:25:21 +01:00
parent 7494aa9c26
commit 74fdfd7a55
6 changed files with 248 additions and 6 deletions

View File

@@ -142,11 +142,11 @@ export const agentApi = {
},
// Import agent configuration
importAgentConfig: async (configData) => {
importAgent: async (formData) => {
const response = await fetch(buildUrl(API_CONFIG.endpoints.importAgent), {
method: 'POST',
headers: API_CONFIG.headers,
body: JSON.stringify(configData),
body: formData,
});
return handleResponse(response);
},