import os

from quart import Blueprint, jsonify

api = Blueprint("api", __name__, url_prefix="/api")


@api.route("/health")
async def health():
    return jsonify({"status": "ok"})


@api.route("/version")
async def version():
    return jsonify({"version": os.environ.get("APP_VERSION", "dev")})
