mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 04:53:11 -04:00
Status update added.
This commit is contained in:
@@ -5,6 +5,12 @@ from app.status import status
|
||||
|
||||
@status.route('/_status')
|
||||
def status():
|
||||
return jsonify(
|
||||
status="ok",
|
||||
), 200
|
||||
from app import (get_app_version, status_api_client)
|
||||
api_status = 'n/a'
|
||||
try:
|
||||
api_status = status_api_client.get_status()
|
||||
except:
|
||||
api_status = 'n/a'
|
||||
return jsonify(status="ok",
|
||||
app_version=get_app_version(),
|
||||
api_status=api_status), 200
|
||||
|
||||
Reference in New Issue
Block a user