import{a as n}from"./axios-4a70c6fc.js";const t=n.create({baseURL:"http://localhost:8080/adminapi/v1",withCredentials:!0,timeout:5e3}),i=(e,s="GET",r={},a={})=>{switch(s=s.toUpperCase(),s){case"GET":return t.get(e,{params:r,...a});case"POST":return t.post(e,r,a);default:return t.get(e,{params:r,...a})}};t.interceptors.request.use(e=>e,e=>Promise.reject(e));t.interceptors.response.use(e=>e.data,e=>{if(e.response)switch(e.response.status){}return Promise.reject(e)});export{i as r};
