safety
This commit is contained in:
parent
879e9b4228
commit
c3cb36c8d6
51 changed files with 2290 additions and 1467 deletions
|
|
@ -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}`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue