feat: use masto client
This commit is contained in:
parent
4adab40932
commit
90c45b435f
14 changed files with 96 additions and 205 deletions
|
@ -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>
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue