meister-prism / shiwori

1 stars 1 forks source link

SignInの処理を入れる #74

Closed sho0126hiro closed 5 years ago

sho0126hiro commented 5 years ago

71

sho0126hiro commented 5 years ago

yryrにresponseにstatusCodeを追加してもらう

sho0126hiro commented 5 years ago
.then((response)=>{
            const status = response.status;
            const responseJson = response.json();
            const ret = {"status":status,"res":responseJson};
            return ret;
        }).then((ret)=>ret);

これでresponseにstatusCodeを付与できたので追加しなくてOKです

sho0126hiro commented 5 years ago

143