Skip to content

Commit c49cca7

Browse files
authored
refactor: update the get and delete funnel endpoints to adjust to the BE changes (#7697)
1 parent 796b682 commit c49cca7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/api/traceFunnels/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const getFunnelById = async (
5858
funnelId?: string,
5959
): Promise<SuccessResponse<FunnelData> | ErrorResponse> => {
6060
const response: AxiosResponse = await axios.get(
61-
`${FUNNELS_BASE_PATH}/get/${funnelId}`,
61+
`${FUNNELS_BASE_PATH}/${funnelId}`,
6262
);
6363

6464
return {
@@ -98,7 +98,7 @@ export const deleteFunnel = async (
9898
payload: DeleteFunnelPayload,
9999
): Promise<SuccessResponse<FunnelData> | ErrorResponse> => {
100100
const response: AxiosResponse = await axios.delete(
101-
`${FUNNELS_BASE_PATH}/delete/${payload.id}`,
101+
`${FUNNELS_BASE_PATH}/${payload.id}`,
102102
);
103103

104104
return {

0 commit comments

Comments
 (0)