Skip to content

Commit 449cd64

Browse files
authored
fix: about/providers page api fix
1 parent 69dafba commit 449cd64

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/components/about-pages/network-activity/useDashboardData.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import { useQuery } from "@tanstack/react-query";
44
import axios from "axios";
55

66
export async function getDashboardData(): Promise<DashboardData> {
7-
const response = await axios.get(`${BASE_API_URL}/dashboardData`);
7+
const response = await axios.get(`${BASE_API_URL}/v1/dashboard-data`);
88
return response.data;
99
}
1010

1111
export async function getProviderDetail() {
12-
const response = await axios.get(`${BASE_API_URL}/providers`);
12+
const response = await axios.get(`${BASE_API_URL}/v1/providers`);
1313

1414
return response.data;
1515
}

src/components/about-pages/network-activity/useMarketData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const mockData: MarketData = {
2323

2424
async function getMarketData(): Promise<MarketData> {
2525
if (isProd) {
26-
const response = await axios.get(`${BASE_API_URL}/marketdata`);
26+
const response = await axios.get(`${BASE_API_URL}/v1/market-data`);
2727
return response.data;
2828
} else {
2929
return mockData;

src/components/ecosystem-pages/providers-page/useProviderList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const isProd = import.meta.env.PROD;
77

88
export async function getProviderList(): Promise<ApiProviderList[]> {
99
try {
10-
const response = await axios.get(`${BASE_API_URL}/providers`);
10+
const response = await axios.get(`${BASE_API_URL}/v1/providers`);
1111

1212
// Handle case where response.data might be an array directly or wrapped
1313
const data = Array.isArray(response.data) ? response.data : response.data?.data || response.data?.providers || [];

0 commit comments

Comments
 (0)