Something went wrong. Try again.
🔥 🔥 🔥 A Free & Self-hostable Airtable Alternative nocodb.com
Something went wrong. Try again.
123456789101112131415161718192021import type { Api } from 'nocodb-sdk'
const apiPlugin = (nuxtApp) => { const { api } = useApi()
/** injects a global api instance */ nuxtApp.provide('api', api)}
declare module _NuxtApp { interface NuxtApp { $api: Api<any> }}
export { apiPlugin }
export default defineNuxtPlugin(function (nuxtApp) { if (!isEeUI) return apiPlugin(nuxtApp)})