chore(ui): Remove original UI/API routes
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import React from 'react';
|
||||
import FormFieldDefinition from '../common/FormFieldDefinition';
|
||||
import DynamicPromptForm from '../DynamicPromptForm';
|
||||
import DynamicPromptForm from '../DynamicPromptForm';
|
||||
|
||||
/**
|
||||
* Prompts & Goals section of the agent form
|
||||
|
||||
2
webui/react-ui/src/utils/api.js
vendored
2
webui/react-ui/src/utils/api.js
vendored
@@ -176,7 +176,7 @@ export const agentApi = {
|
||||
export const chatApi = {
|
||||
// Send a message to an agent using the JSON-based API
|
||||
sendMessage: async (name, message) => {
|
||||
const response = await fetch(buildUrl(API_CONFIG.endpoints.chatApi(name)), {
|
||||
const response = await fetch(buildUrl(API_CONFIG.endpoints.chat(name)), {
|
||||
method: 'POST',
|
||||
headers: API_CONFIG.headers,
|
||||
body: JSON.stringify({ message }),
|
||||
|
||||
10
webui/react-ui/src/utils/config.js
vendored
10
webui/react-ui/src/utils/config.js
vendored
@@ -21,10 +21,11 @@ export const API_CONFIG = {
|
||||
agents: '/api/agents',
|
||||
agentConfig: (name) => `/api/agent/${name}/config`,
|
||||
agentConfigMetadata: '/api/meta/agent/config',
|
||||
createAgent: '/create',
|
||||
createAgent: '/api/agent/create',
|
||||
deleteAgent: (name) => `/api/agent/${name}`,
|
||||
pauseAgent: (name) => `/api/agent/${name}/pause`,
|
||||
startAgent: (name) => `/api/agent/${name}/start`,
|
||||
|
||||
exportAgent: (name) => `/settings/export/${name}`,
|
||||
importAgent: '/settings/import',
|
||||
|
||||
@@ -33,8 +34,7 @@ export const API_CONFIG = {
|
||||
createGroup: '/api/agent/group/create',
|
||||
|
||||
// Chat endpoints
|
||||
chat: (name) => `/chat/${name}`,
|
||||
chatApi: (name) => `/api/chat/${name}`,
|
||||
chat: (name) => `/api/chat/${name}`,
|
||||
notify: (name) => `/notify/${name}`,
|
||||
responses: '/v1/responses',
|
||||
|
||||
@@ -42,8 +42,8 @@ export const API_CONFIG = {
|
||||
sse: (name) => `/sse/${name}`,
|
||||
|
||||
// Action endpoints
|
||||
listActions: '/actions',
|
||||
executeAction: (name) => `/action/${name}/run`,
|
||||
listActions: '/api/actions',
|
||||
executeAction: (name) => `/api/action/${name}/run`,
|
||||
|
||||
// Status endpoint
|
||||
status: (name) => `/status/${name}`,
|
||||
|
||||
Reference in New Issue
Block a user