Added healthcheck page

- used in ELB healthchecks
This commit is contained in:
Martyn Inglis
2015-12-15 17:14:13 +00:00
parent 624c49b021
commit 3f5e7ae0bd
6 changed files with 26 additions and 0 deletions

5
app/status/__init__.py Normal file
View File

@@ -0,0 +1,5 @@
from flask import Blueprint
status = Blueprint('status', __name__)
from app.status.views import healthcheck

View File

View File

@@ -0,0 +1,10 @@
from flask import jsonify
from app.status import status
@status.route('/_status')
def status():
return jsonify(
status="ok",
), 200