@element_app.route('/cube/<slug>', method='GET')
def element_cube(mongodb, slug=None):
    DW = DataWarehouse()
    data = DW.get(slug)
    columns = data.get("columns") or []
    return {'columns': columns}
dataset/ETHPy150Open mining/mining/mining/controllers/api/element.py/element_cube/original