Backend-Adresse aus .env file beziehen

This commit is contained in:
Torsten Schulz
2024-06-15 23:29:41 +02:00
parent 61653ff407
commit 4e371f88b1
23 changed files with 568 additions and 83 deletions

View File

@@ -99,7 +99,7 @@ export default {
const fetchPages = async () => {
try {
const response = await axios.get('http://localhost:3000/api/menu-data');
const response = await axios.get('/menu-data');
pages.value = response.data;
} catch (error) {
console.error('Fehler beim Abrufen der Seiten:', error);