def METHOD_NAME(route: str, routes_dir: str):
    """
    Converts the route such as shown below:
    /               routes.index
    /country        routes.country
    /country/usa    routes.country.usa
    If this module (controllers/server.py) is not the root package,
    then the conversions look like following:
    /               .routes.index
    /country        .routes.country
    /country/usa    .routes.country.usa
    """
    if route == "/":
        replaceWith = ".index"
    else:
        replaceWith = route.replace("/", ".")
    modelPy = ("." if __package__ != "" else "") + routes_dir + replaceWith + "_model"
    entryPy = ("." if __package__ != "" else "") + routes_dir + replaceWith
    routeDetails = {"modelPy": modelPy, "entryPy": entryPy}
    return routeDetails