Upgraded to API v2
This commit is contained in:
parent
49482af3e8
commit
fe397e5ed3
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue