feat(ui): Add import agent screen
This commit is contained in:
4
webui/react-ui/src/utils/api.js
vendored
4
webui/react-ui/src/utils/api.js
vendored
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user