File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
about-pages/network-activity
ecosystem-pages/providers-page Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ import { useQuery } from "@tanstack/react-query";
44import axios from "axios" ;
55
66export 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
1111export 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}
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const mockData: MarketData = {
2323
2424async 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 ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const isProd = import.meta.env.PROD;
77
88export 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 || [ ] ;
You can’t perform that action at this time.
0 commit comments