'GET /api/genomes/{id}/indexes?type={table name}
Returns all available indexes for a genome id for type={table name}
For instance, /api/genomes/hg19/indexes?type=fasta_indexes'

@web.expose_api_raw_anonymous
def indexes(self, trans, id, **kwd):

    index_extensions = {'fasta_indexes': '.fai'}
    id = get_id(id, kwd.get('format', None))
    index_type = kwd.get('type', None)
    tbl_entries = self.app.tool_data_tables.data_tables[index_type].data
    index_file_name = [x[(-1)] for x in tbl_entries if (id in x)].pop()
    if_open = open((index_file_name + index_extensions[index_type]), mode='r')
    return if_open.read()
