mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-02-12 13:01:51 +00:00
Adding health route
This commit is contained in:
parent
dc3df5bbc8
commit
4bfac574db
1 changed files with 8 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue