Fixed up the health check page

This commit is contained in:
Martyn Inglis
2016-03-03 16:41:21 +00:00
parent 0fd2572b08
commit 76ccb99666
5 changed files with 25 additions and 38 deletions

11
app.py
View File

@@ -1,7 +1,6 @@
import os
from flask.ext.script import Manager, Server
from flask_migrate import Migrate, MigrateCommand
from app import (create_app, get_app_version)
from app import create_app
application = create_app(os.getenv('NOTIFICATIONS_ADMIN_ENVIRONMENT') or 'development')
@@ -17,13 +16,5 @@ def list_routes():
print("{:10} {}".format(", ".join(rule.methods - set(['OPTIONS', 'HEAD'])), rule.rule))
@manager.command
def app_version():
"""
Retrieve the version of the api.
"""
return get_app_version()
if __name__ == '__main__':
manager.run()