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

@ -38,7 +38,7 @@
<script setup>
import { ref, onMounted } from 'vue';
import Axios from '../axios.config.js';
import serversideConfig from '../serversideConfig.js';
import clientsideConfig from '../../clientsideConfig.js';
const darkMode = ref(true)
const productionOrderTemplates = ref([]);
@ -46,7 +46,7 @@ const productionOrderTemplates = ref([]);
//get all productionOrder templates
const getProductionOrderTemplates = async () => {
try {
const response = await Axios.get(`https://${serversideConfig.url}:3000/api/getAllProductionOrderTemplates`);
const response = await Axios.get(`https://${clientsideConfig.url}:${clientsideConfig.port}/api/getAllProductionOrderTemplates`);
productionOrderTemplates.value = response.data;
} catch (err) {
console.log(err.response.statusText);