Constraining the shape of dark matter haloes using only starlight. I. A new technique and its application to the galaxy Nube | Publicación