move frontend view out of the api app

This commit is contained in:
wh1te909
2020-09-24 00:11:17 +00:00
parent 4a3379cdfb
commit fd0b95cd49

View File

@@ -77,7 +77,7 @@ export default {
downloadMesh() {
const fileName = this.info.arch === "64" ? "meshagent.exe" : "meshagent-x86.exe";
this.$axios
.post(`/api/v1/${this.info.arch}/getmeshexe/`, {}, { responseType: "blob" })
.post(`/agents/${this.info.arch}/getmeshexe/`, {}, { responseType: "blob" })
.then(({ data }) => {
const blob = new Blob([data], { type: "application/vnd.microsoft.portable-executable" });
let link = document.createElement("a");