Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import { useQuery } from "@tanstack/react-query";
import axios from "axios";

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

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

return response.data;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const mockData: MarketData = {

async function getMarketData(): Promise<MarketData> {
if (isProd) {
const response = await axios.get(`${BASE_API_URL}/marketdata`);
const response = await axios.get(`${BASE_API_URL}/v1/market-data`);
return response.data;
} else {
return mockData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const isProd = import.meta.env.PROD;

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

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