[fix] make API calls relatives

This commit is contained in:
Laurent Peuch 2018-09-20 00:55:50 +02:00
parent 5dc2c34a29
commit 247bcb41b5

View file

@ -41,10 +41,10 @@
return new Date(timestamp * 1000).toLocaleString() return new Date(timestamp * 1000).toLocaleString()
}, },
cancelJob: function() { cancelJob: function() {
$.post("/api/job/" + this.job.id + "/stop") $.post("<{ relative_path_to_root }>api/job/" + this.job.id + "/stop")
}, },
restartJob: function() { restartJob: function() {
$.post("/api/job/" + this.job.id + "/restart") $.post("<{ relative_path_to_root }>api/job/" + this.job.id + "/restart")
} }
}, },
computed: { computed: {