https://github.com/apache/airflow/pull/27892 added Internal API as part of Webserver.

We need to introduce `airlfow internal-api` CLI command that starts Internal API as a independent component.
#
#
from __future__ import annotations
import logging
import warnings
from os import path
from connexion import App, ProblemException
from flask import Flask, request
from airflow.api_connexion.exceptions import common_error_handler
from airflow.configuration import conf
from airflow.exceptions import RemovedInAirflow3Warning
from airflow.security import permissions
log = logging.getLogger(__name__)
ROOT_APP_DIR = path.abspath(path.join(path.dirname(__file__), path.pardir, path.pardir))
def init_flash_views(app):
    """Init main app view - redirect to FAB"""
    from airflow.www.blueprints import routes
    app.register_blueprint(routes)
def init_appbuilder_views(app):
    """Initialize Web UI views"""
    from airflow.models import import_all_models
    import_all_models()
    from airflow.www import views
    appbuilder = app.appbuilder