elk/plugins/masto.ts
2022-11-14 10:20:07 +08:00

8 lines
172 B
TypeScript

import { login } from 'masto'
export default defineNuxtPlugin((nuxt) => {
const masto = login({
url: 'https://mas.to',
})
nuxt.vueApp.provide('masto', masto)
})