implemented connection to the backend
This commit is contained in:
@ -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',
|
||||
|
||||
Reference in New Issue
Block a user