Add a status endpoint that we can use to test if the instance is serving traffic.
This commit is contained in:
parent
70a9e79157
commit
504bc7e04e
1 changed files with 6 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
import logging
|
||||
|
||||
from flask import (abort, send_file, redirect, request, url_for,
|
||||
render_template)
|
||||
render_template, make_response)
|
||||
from flask.ext.login import login_user, UserMixin, login_required, logout_user
|
||||
from flask.ext.principal import identity_changed, Identity, AnonymousIdentity
|
||||
|
||||
|
@ -38,6 +38,11 @@ def index():
|
|||
return send_file('templates/index.html')
|
||||
|
||||
|
||||
@app.route('/status', methods=['GET'])
|
||||
def status():
|
||||
return make_response('Healthy')
|
||||
|
||||
|
||||
@app.route('/tos', methods=['GET'])
|
||||
def tos():
|
||||
return send_file('templates/tos.html')
|
||||
|
|
Reference in a new issue