From 58fad3d105175fa05de211162155ef0b110cc2a1 Mon Sep 17 00:00:00 2001 From: Bart Meuris Date: Fri, 17 Jul 2020 18:02:14 +0200 Subject: [PATCH] Added ${config.base} when calling /api/logs?id=... (#582) Co-authored-by: Bart Meuris --- assets/components/LogEventSource.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/components/LogEventSource.vue b/assets/components/LogEventSource.vue index f4cf46a4..f9ec55fb 100644 --- a/assets/components/LogEventSource.vue +++ b/assets/components/LogEventSource.vue @@ -62,7 +62,7 @@ export default { const delta = to - last; const from = new Date(to.getTime() + delta); const logs = await ( - await fetch(`/api/logs?id=${this.id}&from=${from.toISOString()}&to=${to.toISOString()}`) + await fetch(`${config.base}/api/logs?id=${this.id}&from=${from.toISOString()}&to=${to.toISOString()}`) ).text(); if (logs) { const newMessages = logs