fix listing endpoints

This commit is contained in:
Nate Kelley 2025-03-12 09:21:54 -06:00
parent f18c509358
commit f12f443fda
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
2 changed files with 3 additions and 3 deletions

View File

@ -26,11 +26,11 @@ export const getMetricData = async ({ id }: { id: string }) => {
};
export const listMetrics = async (params: ListMetricsParams) => {
return mainApi.get<BusterMetricListItem[]>('/metrics/list', { params }).then((res) => res.data);
return mainApi.get<BusterMetricListItem[]>('/metrics', { params }).then((res) => res.data);
};
export const listMetrics_server = async (params: ListMetricsParams) => {
return await serverFetch<BusterMetricListItem[]>('/metrics/list', { params });
return await serverFetch<BusterMetricListItem[]>('/metrics', { params });
};
export const updateMetric = async (params: UpdateMetricParams) => {

View File

@ -7,5 +7,5 @@ export const createTeam = async (params: CreateTeamParams) => {
};
export const getTeamsList = async (params: TeamListParams) => {
return mainApi.get<BusterUserTeam[]>('/teams/list', { params }).then((res) => res.data);
return mainApi.get<BusterUserTeam[]>('/teams', { params }).then((res) => res.data);
};