This commit is contained in:
Boki 2026-10-20 18:36:19 -04:00
parent 879e9b4228
commit c3cb36c8d6
51 changed files with 2290 additions and 1467 deletions

View file

@ -1,3 +1,4 @@
import { API_BASE_URL, apiFetch as fetch } from '@/lib/api';
import type {
ApiResponse,
CreateExchangeRequest,
@ -11,8 +12,6 @@ import type {
UpdateProviderMappingRequest,
} from '../types/index';
const API_BASE_URL = import.meta.env.VITE_API_BASE_URL || 'http://localhost:2003';
class ExchangeApiService {
private async request<T>(endpoint: string, options?: RequestInit): Promise<ApiResponse<T>> {
const url = `${API_BASE_URL}/api${endpoint}`;