import{bG as e}from"./index.9313841a.js";import{k as t}from"./index.d11c4764.js";const s=t.create({prefixUrl:{}.API_URL,headers:{auth:e.get("token")},hooks:{beforeRequest:[t=>{t.headers.set("auth",e.get("token"))}],afterResponse:[t=>{401===t.status&&e.remove("token")}]}}),r=t.create({prefixUrl:{}.LOCAL_API_URL,headers:{Authorization:{}.LOCAL_API_SECRET_KEY||"secret"},hooks:{beforeRequest:[e=>{e.headers.set("Authorization",{}.LOCAL_API_SECRET_KEY||"secret")}],afterResponse:[t=>{401===t.status&&e.remove("Authorization")}]}});export{r as a,s as l};
