Moved from React proxy to config

This commit is contained in:
2022-10-04 17:51:07 +02:00
parent 92ee1cfd64
commit 5a7e37077a
3 changed files with 10 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
export const API_URL = 'http://localhost:5000';
+7
View File
@@ -0,0 +1,7 @@
import { API_URL } from '@/config';
import Axios from 'axios';
export const axios = Axios.create({
baseURL: API_URL,
withCredentials: true,
});