initialize Vite + React + TypeScript project with Tailwind CSS and API service setup

This commit is contained in:
2025-02-01 00:33:24 -03:00
commit f133e18302
31 changed files with 5317 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import { ApiConfig } from './types';
// API configuration
export const apiConfig: ApiConfig = {
baseURL: import.meta.env.VITE_API_BASE_URL || 'http://localhost:5278',
timeout: 10000, // 10 seconds
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, OPTIONS',
'Access-Control-Allow-Headers': 'Content-Type, Authorization'
},
};