mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-06-04 11:25:52 +08:00
refactor: update funnel description endpoint from POST /save to PUT /{funnel_id}
This commit is contained in:
parent
d62b1cf49f
commit
091dc91f76
@ -167,8 +167,8 @@ interface UpdateFunnelDescriptionPayload {
|
|||||||
export const saveFunnelDescription = async (
|
export const saveFunnelDescription = async (
|
||||||
payload: UpdateFunnelDescriptionPayload,
|
payload: UpdateFunnelDescriptionPayload,
|
||||||
): Promise<SuccessResponse<FunnelData> | ErrorResponse> => {
|
): Promise<SuccessResponse<FunnelData> | ErrorResponse> => {
|
||||||
const response: AxiosResponse = await axios.post(
|
const response: AxiosResponse = await axios.put(
|
||||||
`${FUNNELS_BASE_PATH}/save`,
|
`${FUNNELS_BASE_PATH}/${payload.funnel_id}`,
|
||||||
payload,
|
payload,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user