prefix urls

This commit is contained in:
Emmanuel Viennet 2021-09-18 21:19:01 +02:00
parent b7011962be
commit 5d58d484e0

View File

@ -19,13 +19,13 @@ UPLOAD_LOG_FILENAME = os.path.join(DIR, "upload-dump-log.json")
DEBUG = False # if false, don't publish error messages
@bp.route("/last_stable_version")
@bp.route("/scodoc-installmgr/last_stable_version")
def last_stable_version():
# LAST_RELEASE_TAG=$(curl "$GITEA_RELEASE_URL" | jq ".[].tag_name" | tr -d -c "0-9.\n" | sort --version-sort | tail -1)
return "9.0.30"
@bp.route("/upload_dump", methods=["POST"])
@bp.route("/scodoc-installmgr/upload_dump", methods=["POST"])
def upload_dump():
"""
Réception d'un fichier de dump uploadé
@ -133,7 +133,7 @@ def increment():
return val
@bp.route("/version", methods=["GET"])
@bp.route("/scodoc-installmgr/version", methods=["GET"])
def version():
"""
echo -e "DATE\tIP\tSVN\tSERIAL\tOP" > installs.log; chown scodoc installs.log