changed all urls

This commit is contained in:
2024-02-16 17:35:00 +01:00
parent fb59fb756e
commit 03e4164b97
14 changed files with 31 additions and 28 deletions

View File

@ -49,7 +49,7 @@
import { useRouter } from 'vue-router';
import { ref } from 'vue';
import Axios from '../axios.config.js';
import serversideConfig from '../serversideConfig.js';
import clientsideConfig from '../clientsideConfig.js';
const router = useRouter();
const darkMode = ref(true);
@ -69,7 +69,7 @@ const handleLogin = async () => {
}
try {
let res = await Axios.post(`https://${serversideConfig.url}:3000/api/login`, requestBody);
let res = await Axios.post(`https://${clientsideConfig.url}:${clientsideConfig.port}/api/login`, requestBody);
// something to do with the res?
console.log(res.data)
@ -123,7 +123,7 @@ const testFunctionSignup = async () => {
}
try {
let res = await Axios.post(`https://${serversideConfig.url}:3000/api/signup`, requestBody);
let res = await Axios.post(`https://${clientsideConfig.url}:${clientsideConfig.port}/api/signup`, requestBody);
// something to do with the res?
console.log(res.data)