Upgraded to API v2

This commit is contained in:
Joel Collins 2019-11-26 16:28:02 +00:00
parent 49482af3e8
commit fe397e5ed3

View file

@ -68,7 +68,7 @@ export default {
pollProgress: function() { pollProgress: function() {
console.log("Starting progress polling"); console.log("Starting progress polling");
axios axios
.get(`${this.$store.getters.uri}/task/${this.taskId}`) .get(`${this.$store.getters.uriV2}/tasks/${this.taskId}`)
.then(response => { .then(response => {
console.log("PROGRESS RESPONSE: ", response.data.progress); console.log("PROGRESS RESPONSE: ", response.data.progress);
this.progress = response.data.progress; this.progress = response.data.progress;
@ -77,7 +77,7 @@ export default {
terminateTask: function() { terminateTask: function() {
axios axios
.delete(`${this.$store.getters.uri}/task/${this.taskId}`) .delete(`${this.$store.getters.uriV2}/tasks/${this.taskId}`)
.then(response => { .then(response => {
console.log("TERMINATION RESPONSE: ", response.data); console.log("TERMINATION RESPONSE: ", response.data);
}); });