Skip to content

Commit

Permalink
fix: match premd routes with slash in docker controller
Browse files Browse the repository at this point in the history
  • Loading branch information
tiero committed Nov 1, 2023
1 parent 5e53fd0 commit 4cd013b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/controller/dockerController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class DockerController extends AbstractServiceController {
}

async getServices(): Promise<ServiceDocker[]> {
const response = await api().get("v1/services");
const response = await api().get("v1/services/");
return response.data;
}

Expand All @@ -76,17 +76,17 @@ class DockerController extends AbstractServiceController {
}

async getSystemStats(): Promise<Record<string, string>> {
const response = await api().get("v1/stats-all");
const response = await api().get("v1/stats-all/");
return response.data;
}

async getGPUStats(): Promise<Record<string, string>> {
const response = await api().get("v1/gpu-stats-all");
const response = await api().get("v1/gpu-stats-all/");
return response.data;
}

async getInterfaces(): Promise<Interface[]> {
const response = await api().get("v1/interfaces");
const response = await api().get("v1/interfaces/");
return response.data;
}

Expand Down

0 comments on commit 4cd013b

Please sign in to comment.