How to rewrite this paragraph into promise,?

 xnatInstance.get(`http://10.2.10.106:5199/mri/predict?pid=${patientName}`).then((respose)=> {
        console.log(respose.data.msg);
         instance.datas=respose.data.msg;
    });
Mar.14,2022

this xnatInstance.get already returns an instance of Promise.

Menu