implemented connection to the backend

This commit is contained in:
2024-02-06 17:18:37 +01:00
parent 876d066f3d
commit 73d0b89b4d
11 changed files with 409 additions and 62 deletions

View File

@ -1,9 +1,8 @@
import axios from 'axios';
import serversideConfig from './serversideConfig.js'
//create axios instance
const Axios = axios.create({
baseURL: `http://${serversideConfig.url}:${serversideConfig.port}`,
// baseURL: `https://${serversideConfig.url}:${serversideConfig.port}`,
headers: {
// 'Accept': 'application/json',
'Content-Type': 'application/json',