def initialize(app: Flask, app_config):
    """
    Initialize the module.

    :param app: The Flask application.
    :param app_config: Application configuration dictionary. If `http.serve_on_endpoint` attribute
     is specified (e.g. /sacredboard/), the application will be hosted on that endpoint
    (e.g. http://localhost:5000/sacredboard/)
    """
    sub_url = app_config["http.serve_on_endpoint"]
    if sub_url != "/":
        app.wsgi_app = ReverseProxied(app.wsgi_app, script_name=sub_url)
def initialize ( app : Flask , app_config ) : sub_url = app_config [ "http.serve_on_endpoint" ] if sub_url != "/" : app . wsgi_app = ReverseProxied ( app . wsgi_app , script_name = sub_url )
Initialize the module.

    :param app: The Flask application.
    :param app_config: Application configuration dictionary. If `http.serve_on_endpoint` attribute
     is specified (e.g. /sacredboard/), the application will be hosted on that endpoint
    (e.g. http://localhost:5000/sacredboard/)