def get_indexes(marqo_config: config.Config = Depends(get_config)):
    """
    List all indexes. Please refer to
    [List index API document](https://docs.marqo.ai/latest/reference/api/indexes/list-indexes/) for details.
    """
    indexes = marqo_config.index_management.get_all_indexes()
    return {
        'results': [
            {'indexName': index.name} for index in indexes
        ]
    }

    List all indexes. Please refer to
    [List index API document](https://docs.marqo.ai/latest/reference/api/indexes/list-indexes/) for details.
    
src/marqo/tensor_search/api.py