From 478ea7c73de49f06be20ec5baa8b791516d95a50 Mon Sep 17 00:00:00 2001 From: Bryan BRANCOTTE <bryan.brancotte@pasteur.fr> Date: Tue, 17 May 2022 13:23:35 +0200 Subject: [PATCH] remove ending slash to prevent url rewrite with wrong http protocole --- client/pages/projects/_id.vue | 2 +- jass/server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/pages/projects/_id.vue b/client/pages/projects/_id.vue index d80c16df..4481a52d 100644 --- a/client/pages/projects/_id.vue +++ b/client/pages/projects/_id.vue @@ -571,7 +571,7 @@ methods:{ async getStatus(){ - await this.$axios.$get('/queue_status/').then((async function (resultStatus) { + await this.$axios.$get('/queue_status').then((function (resultStatus) { console.log(resultStatus); this.activeTask = resultStatus.active; this.pendingTask = resultStatus.reserved; diff --git a/jass/server.py b/jass/server.py index af47bc84..d77a2367 100644 --- a/jass/server.py +++ b/jass/server.py @@ -168,7 +168,7 @@ def get_manhattan(project_id: str, selected_chr: str, selected_region: str): @app.get("/api/queue_status") -def project_detail(): +def queue_status(): return JSONResponse(get_queue_status()) -- GitLab