about summary refs log tree commit diff
path: root/gn3/api
diff options
context:
space:
mode:
authorAlexander_Kabui2025-01-09 10:28:26 +0300
committerAlexander_Kabui2025-01-09 10:35:45 +0300
commit4e63aa2246c2f3ca6c09c284f7f78b896fe0e33b (patch)
tree24a65454878c268a231a355f7e57839ccf2846a6 /gn3/api
parent8bfe9616012deab8f910e89b233ea819ec22c1c3 (diff)
downloadgenenetwork3-4e63aa2246c2f3ca6c09c284f7f78b896fe0e33b.tar.gz
feat: Add and register streaming blueprint.
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/streaming.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gn3/api/streaming.py b/gn3/api/streaming.py
index 6569ceb..213d97f 100644
--- a/gn3/api/streaming.py
+++ b/gn3/api/streaming.py
@@ -5,11 +5,11 @@ from flask import jsonify
 from flask import Blueprint
 from flask import request
 
-streaming = Blueprint("streaming", __name__)
+streaming = Blueprint("stream", __name__)
 
 
-@streaming.route("/stream/<identifier>",  methods=["GET"])
-def stream(identifier="output"):
+@streaming.route("/<identifier>",  methods=["GET"])
+def stream(identifier):
     """ This endpoints streams stdout from a file expects
     the indetifier to be the file """
     output_file = os.path.join(current_app.config.get("TMPDIR"),