From 4cd013bfa734e3dd70bb9e834febaf24fcae7128 Mon Sep 17 00:00:00 2001 From: tiero <3596602+tiero@users.noreply.github.com> Date: Wed, 1 Nov 2023 13:32:52 +0100 Subject: [PATCH] fix: match premd routes with slash in docker controller --- src/controller/dockerController.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/controller/dockerController.ts b/src/controller/dockerController.ts index e1b82fd1..094d3ba6 100644 --- a/src/controller/dockerController.ts +++ b/src/controller/dockerController.ts @@ -62,7 +62,7 @@ class DockerController extends AbstractServiceController { } async getServices(): Promise { - const response = await api().get("v1/services"); + const response = await api().get("v1/services/"); return response.data; } @@ -76,17 +76,17 @@ class DockerController extends AbstractServiceController { } async getSystemStats(): Promise> { - const response = await api().get("v1/stats-all"); + const response = await api().get("v1/stats-all/"); return response.data; } async getGPUStats(): Promise> { - const response = await api().get("v1/gpu-stats-all"); + const response = await api().get("v1/gpu-stats-all/"); return response.data; } async getInterfaces(): Promise { - const response = await api().get("v1/interfaces"); + const response = await api().get("v1/interfaces/"); return response.data; }