From f12f443fda14fe18ed09dfba86f2a62dffea59b8 Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Wed, 12 Mar 2025 09:21:54 -0600 Subject: [PATCH] fix listing endpoints --- web/src/api/buster_rest/metrics/requests.ts | 4 ++-- web/src/api/buster_rest/teams/requests.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/api/buster_rest/metrics/requests.ts b/web/src/api/buster_rest/metrics/requests.ts index fdec7e129..d1ba96a9e 100644 --- a/web/src/api/buster_rest/metrics/requests.ts +++ b/web/src/api/buster_rest/metrics/requests.ts @@ -26,11 +26,11 @@ export const getMetricData = async ({ id }: { id: string }) => { }; export const listMetrics = async (params: ListMetricsParams) => { - return mainApi.get('/metrics/list', { params }).then((res) => res.data); + return mainApi.get('/metrics', { params }).then((res) => res.data); }; export const listMetrics_server = async (params: ListMetricsParams) => { - return await serverFetch('/metrics/list', { params }); + return await serverFetch('/metrics', { params }); }; export const updateMetric = async (params: UpdateMetricParams) => { diff --git a/web/src/api/buster_rest/teams/requests.ts b/web/src/api/buster_rest/teams/requests.ts index 6551ea2df..d5cf6059e 100644 --- a/web/src/api/buster_rest/teams/requests.ts +++ b/web/src/api/buster_rest/teams/requests.ts @@ -7,5 +7,5 @@ export const createTeam = async (params: CreateTeamParams) => { }; export const getTeamsList = async (params: TeamListParams) => { - return mainApi.get('/teams/list', { params }).then((res) => res.data); + return mainApi.get('/teams', { params }).then((res) => res.data); };