From aba78cdd6346c2956b83f587ef9b9b76965f5854 Mon Sep 17 00:00:00 2001
From: Christian Schiffer <c.schiffer@fz-juelich.de>
Date: Thu, 8 Apr 2021 16:25:49 +0200
Subject: [PATCH] Changed route to predictions

---
 atlas_server/src/app.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/atlas_server/src/app.py b/atlas_server/src/app.py
index 6278ac0..e8bd0ec 100644
--- a/atlas_server/src/app.py
+++ b/atlas_server/src/app.py
@@ -20,6 +20,7 @@ api = Api(app,
 
 project_namespace = api.namespace("projects", description="Operations to deal with projects")
 annotation_namespace = api.namespace("annotations", description="Operations to deal with annotations")
+predictions_namespace = api.namespace("predictions", description="Operations to deal with predictions")
 
 # -----------------------------------
 # Model definitions
@@ -518,7 +519,7 @@ class AnnotationImportExport(Resource):
         }
 
 
-@annotation_namespace.route("/<int:project_id>/tasks/<int:task_id>")
+@predictions_namespace.route("/<int:project_id>/tasks/<int:task_id>")
 class PredictionAnnotationExport(Resource):
     @annotation_namespace.doc("Retrieve annotations based on predictions of a specific task")
     def get(self, project_id, task_id):
-- 
GitLab