feat: use masto client

This commit is contained in:
Anthony Fu 2022-11-14 10:20:07 +08:00
parent 4adab40932
commit 90c45b435f
14 changed files with 96 additions and 205 deletions

View file

@ -1,9 +1,5 @@
import { Client } from '~/api-client'
import type { MastoClient } from 'masto'
const client = new Client({
host: 'https://mas.to',
})
export function useClient() {
return client
export function useMasto() {
return inject('masto') as Promise<MastoClient>
}