Backend-Adresse aus .env file beziehen
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user