From 27aa07ff6438a44fe6fec7cddc70db12db7a274d Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Thu, 9 Sep 2021 05:55:27 +0000 Subject: [PATCH] add missing trailing slashes fixes #43 --- src/api/agents.js | 2 +- src/store/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/agents.js b/src/api/agents.js index ed1762f..4069ceb 100644 --- a/src/api/agents.js +++ b/src/api/agents.js @@ -11,7 +11,7 @@ export async function fetchAgents() { export async function fetchAgentHistory(pk) { try { - const { data } = await axios.get(`${baseUrl}/history/${pk}`) + const { data } = await axios.get(`${baseUrl}/history/${pk}/`) return data } catch (e) { } } diff --git a/src/store/index.js b/src/store/index.js index 8f13d57..ff72ced 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -184,7 +184,7 @@ export default function () { .catch(e => { }) }, loadInstalledSoftware(context, pk) { - axios.get(`/software/installed/${pk}`).then(r => { + axios.get(`/software/installed/${pk}/`).then(r => { context.commit("SET_INSTALLED_SOFTWARE", r.data.software); }) .catch(e => { });