Merge pull request #57 from ComputerScienceHouse/health_route

Adding health route
This commit is contained in:
Devin Matte 2020-12-08 11:19:41 -05:00 committed by GitHub
commit 9effdc4830
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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: