1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-07 16:17:23 +01:00

show the Mail-in-a-Box version in the control panel and a button to ping the MiaB website for the latest version

fixes #441
This commit is contained in:
Joshua Tauberer
2015-06-25 13:42:22 +00:00
parent 1367816b04
commit 7527b4dc27
5 changed files with 42 additions and 0 deletions

View File

@@ -340,6 +340,24 @@ def web_update():
# System
@app.route('/system/version', methods=["GET"])
@authorized_personnel_only
def system_version():
from status_checks import what_version_is_this
try:
return what_version_is_this(env)
except Exception as e:
return (str(e), 500)
@app.route('/system/latest-upstream-version', methods=["POST"])
@authorized_personnel_only
def system_latest_upstream_version():
from status_checks import get_latest_miab_version
try:
return get_latest_miab_version()
except Exception as e:
return (str(e), 500)
@app.route('/system/status', methods=["POST"])
@authorized_personnel_only
def system_status():