aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
authorPjotr Prins2021-08-07 12:06:49 +0200
committerPjotr Prins2021-08-07 12:06:49 +0200
commite0476d51603432f60b6412b65486166deabe9e08 (patch)
treed201eb44bb0490dfeb3e9d87386adc866591db54 /gn3/api
parent33700066452e3c5f341b790f015f85fb976d06be (diff)
downloadgenenetwork3-e0476d51603432f60b6412b65486166deabe9e08.tar.gz
Add gunicorn support for production
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/general.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gn3/api/general.py b/gn3/api/general.py
index cebb2e3..86fb7b7 100644
--- a/gn3/api/general.py
+++ b/gn3/api/general.py
@@ -11,6 +11,9 @@ from gn3.commands import run_cmd
general = Blueprint("general", __name__)
+@general.route("/version")
+def version():
+ return jsonify("1.0")
@general.route("/metadata/upload/", methods=["POST"],
strict_slashes=False)