Skip to content

Commit aadc511

Browse files
author
Jicheng Lu
committed
change url name
1 parent 624f9ef commit aadc511

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/services/agent-service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ export async function saveAgent(agent) {
4545
}
4646

4747
export async function refreshAgents() {
48-
const url = endpoints.refreshAgentsUrl;
48+
const url = endpoints.agentRefreshUrl;
4949
await axios.post(url);
5050
}

src/lib/services/api-endpoints.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const endpoints = {
2121
agentSettingUrl: `${host}/agent/settings`,
2222
agentListUrl: `${host}/agents`,
2323
agentDetailUrl: `${host}/agent/{id}`,
24-
refreshAgentsUrl: `${host}/refresh-agents`,
24+
agentRefreshUrl: `${host}/refresh-agents`,
2525

2626
// router
2727
routerSettingUrl: `${host}/router/settings`,

0 commit comments

Comments
 (0)