diff --git a/frontend/components/Admin.vue b/frontend/components/Admin.vue index a95351d..3eb7217 100644 --- a/frontend/components/Admin.vue +++ b/frontend/components/Admin.vue @@ -33,7 +33,7 @@ export default { if (window.location.href.includes('localhost')) url = 'http://localhost:30010'.concat(url) - fetch('http://localhost:30010/api/products') + fetch(url) .then(resp => resp.json()) .then(products => this.products = products) }