mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
[fix] make API calls relatives
This commit is contained in:
parent
5dc2c34a29
commit
247bcb41b5
1 changed files with 2 additions and 2 deletions
|
@ -41,10 +41,10 @@
|
|||
return new Date(timestamp * 1000).toLocaleString()
|
||||
},
|
||||
cancelJob: function() {
|
||||
$.post("/api/job/" + this.job.id + "/stop")
|
||||
$.post("<{ relative_path_to_root }>api/job/" + this.job.id + "/stop")
|
||||
},
|
||||
restartJob: function() {
|
||||
$.post("/api/job/" + this.job.id + "/restart")
|
||||
$.post("<{ relative_path_to_root }>api/job/" + this.job.id + "/restart")
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
Loading…
Add table
Reference in a new issue