Changes to get the current version

This commit is contained in:
Félix Aime
2021-02-19 10:57:11 +01:00
parent 5a133d0d17
commit 6790b17f86
2 changed files with 33 additions and 6 deletions

View File

@ -13,6 +13,12 @@ def check():
return jsonify(Update().check_version())
@update_bp.route("/get-version", methods=["GET"])
def get_version():
""" Check the current version """
return jsonify(Update().get_current_version())
@update_bp.route("/process", methods=["GET"])
def process():
""" Check the presence of new version """