apply the routing configuration you've described

    example:
        view_data = [
            ("/", "app.IndexController", "index"),
        ]

        1. "/" is receive request path
        2. "app.IndexController" is to process the received request controller class path
        3. "index" string To generate a URL that refers to the application

def set_routing(app, view_data):
    """
    apply the routing configuration you've described

    example:
        view_data = [
            ("/", "app.IndexController", "index"),
        ]

        1. "/" is receive request path
        2. "app.IndexController" is to process the received request controller class path
        3. "index" string To generate a URL that refers to the application
    """

    routing_modules = convert_routing_module(view_data)

    for module in routing_modules:
        view = import_string(module.import_path)
        app.add_url_rule(module.url, view_func=view.as_view(module.endpoint))