# Path: app/view_util.py
# def render(html, title, **kwargs):
# def get_url_query():
# def request_wants_json():


import json
import socket
from delorean import Delorean
from flask import Response, render_template, request, jsonify, Blueprint
from app import view_util


blueprint = Blueprint('status', __name__)

@blueprint.route("/internal/health")
def status_health():
    dic = {
        "status": "ok"
    }
    js = json.dumps(dic)
    resp = Response(js, status=200, mimetype='text/plain')
    return resp


@blueprint.route("/internal/status")
def status_page():
    status = generate_status()
    if view_util.request_wants_json():

# Path: app/view_util.py
# def render(html, title, **kwargs):
# def get_url_query():
# def request_wants_json():


# Path: app/status.py
import json
import socket
from delorean import Delorean
from flask import Response, render_template, request, jsonify, Blueprint
from app import view_util



blueprint = Blueprint('status', __name__)

@blueprint.route("/internal/health")
def status_health():
    dic = {
        "status": "ok"
    }
    js = json.dumps(dic)
    resp = Response(js, status=200, mimetype='text/plain')
    return resp


@blueprint.route("/internal/status")
def status_page():
    status = generate_status()
    if view_util.request_wants_json():

        return Response(json.dumps(status), status=200, mimetype=view_util.request_wants_json())