(url: string)
| 10 | const api = axios.create({ headers }); |
| 11 | |
| 12 | export const get = (url: string) => api.get(url).then((res) => res.data); |
| 13 | |
| 14 | export const post = (url: string, data?: { arg: any }) => api.post(url, data?.arg).then((res) => res.data); |
| 15 |