import { apiBase } from '~/helpers'; export default async function (path: string) { const headers = new Headers(); headers.append("Content-Type", "application/json"); return await $fetch(`${apiBase}/${path}`, { headers }) }