aboutsummaryrefslogtreecommitdiff
path: root/gn3/api/general.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/api/general.py')
-rw-r--r--gn3/api/general.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gn3/api/general.py b/gn3/api/general.py
index cebb2e3..69ec343 100644
--- a/gn3/api/general.py
+++ b/gn3/api/general.py
@@ -11,6 +11,10 @@ from gn3.commands import run_cmd
general = Blueprint("general", __name__)
+@general.route("/version")
+def version():
+ """Get API version."""
+ return jsonify("1.0")
@general.route("/metadata/upload/", methods=["POST"],
strict_slashes=False)