This commit is contained in:
2026-05-02 17:04:37 +02:00
parent b0509818b2
commit e12b48b3e1
2 changed files with 21 additions and 3 deletions

View File

@@ -1,9 +1,7 @@
import axios from 'axios';
import { backendUrl } from './BackendURL';
const server = axios.create({
baseURL: backendUrl,
baseURL: import.meta.env.API_BASE_URL || 'http://localhost:5000/api',
headers: {
"Access-Control-Allow-Origin": "*",
}