From 247bcb41b53b03bfc2a46b4ef6b289a895e76a2b Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Thu, 20 Sep 2018 00:55:50 +0200 Subject: [PATCH] [fix] make API calls relatives --- templates/job.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/job.html b/templates/job.html index 72f50bf..0d2e021 100644 --- a/templates/job.html +++ b/templates/job.html @@ -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: {