From 06280b4fd9f4c192f3f190be62bbb6cfefbb84ae Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Sun, 19 Jul 2020 16:19:00 +0200 Subject: [PATCH] Forgot to use newly declared url var. --- frontend/components/Admin.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }