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 => { });