Adding health route

This commit is contained in:
Devin Matte 2020-12-08 10:00:36 -05:00
parent dc3df5bbc8
commit 4bfac574db

View file

@ -584,6 +584,14 @@ def logout():
return redirect(url_for('list_vms'), 302)
@app.route("/health")
def health():
"""
Shows an ok status if the application is up and running
"""
return {"status": "ok"}
def exit_handler():
stop_websockify()
for tunnel in ssh_tunnels: