From e0476d51603432f60b6412b65486166deabe9e08 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sat, 7 Aug 2021 12:06:49 +0200 Subject: Add gunicorn support for production --- gn3/api/general.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gn3/api') 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) -- cgit v1.2.3