From 8bc82691bb3b7a65c0732d03decdcf3f37562f8c Mon Sep 17 00:00:00 2001 From: stevenvegt Date: Fri, 9 Apr 2021 14:51:03 +0200 Subject: [PATCH] Relative api path So the app can be mounted behind a /admin/ path --- web/src/admin/Customers.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/admin/Customers.vue b/web/src/admin/Customers.vue index fbe4c65..a00f789 100644 --- a/web/src/admin/Customers.vue +++ b/web/src/admin/Customers.vue @@ -30,7 +30,7 @@ export default { }, methods: { fetchData() { - fetch("/api/customers") + fetch("api/customers") .then(response => response.json()) .then(data => this.customers = data) }