Add a status endpoint that we can use to test if the instance is serving traffic.

This commit is contained in:
yackob03 2013-10-02 14:35:21 -04:00
parent 70a9e79157
commit 504bc7e04e

View file

@ -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')