def make_default_page_title(app_name: str, route: str) -> str:
    """Make a default page title from a route.

    Args:
        app_name: The name of the app owning the page.
        route: The route to make the title from.

    Returns:
        The default page title.
    """
    route_parts = [
        part
        for part in route.split("/")
        if part and not (part.startswith("[") and part.endswith("]"))
    ]

    title = constants.DefaultPage.TITLE.format(
        app_name, route_parts[-1] if route_parts else constants.PageNames.INDEX_ROUTE
    )
    return to_title_case(title)
Make a default page title from a route.

    Args:
        app_name: The name of the app owning the page.
        route: The route to make the title from.

    Returns:
        The default page title.
    
reflex/utils/format.py