{"version":3,"file":"index-C2CEoOAV.js","sources":["../../../../../../../app/frontend/shared/api/index.ts"],"sourcesContent":["import axios from 'axios'\nimport { getCookie } from 'typescript-cookie'\n\nexport const get = (path: string, headers?: N) => {\n return axios.get(path, {\n headers: {\n Accept: 'application/json',\n authorization: localStorage.getItem('Authorization'),\n ...(headers || {}),\n },\n })\n}\n\nexport const postAxios = async (path: string, body?: T, headers?: N) => {\n const csrfToken = getCookie('CSRF-TOKEN')\n\n return axios.post(path, body, {\n headers: {\n Accept: 'application/json',\n 'X-CSRF-Token': csrfToken,\n ...(headers || {}),\n },\n })\n}\n"],"names":["get","path","headers","axios","postAxios","body","csrfToken","getCookie"],"mappings":"4DAGa,MAAAA,EAAM,CAAIC,EAAcC,IAC5BC,EAAM,IAAIF,EAAM,CACrB,QAAS,CACP,OAAQ,mBACR,cAAe,aAAa,QAAQ,eAAe,CAErD,CAAA,CACD,EAGUG,EAAY,MAAaH,EAAcI,EAAUH,IAAgB,CACtE,MAAAI,EAAYC,EAAU,YAAY,EAEjC,OAAAJ,EAAM,KAAKF,EAAMI,EAAM,CAC5B,QAAS,CACP,OAAQ,mBACR,eAAgBC,EAChB,GAAIJ,GAAW,CAAC,CAClB,CAAA,CACD,CACH"}