import axios from 'axios' export const api = { meta: () => axios.get('/api/meta').then((r) => r.data), refresh: () => axios.post('/api/refresh').then((r) => r.data), exportHeroes: (heroes) => axios.post('/api/export', { heroes }).then((r) => r.data), fetchExport: () => axios.get('/api/export', { responseType: 'text' }).then((r) => r.data), }