1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
Files
tooot/src/utils/fetches/accountFetch.ts
2020-12-15 00:01:48 +01:00

14 lines
283 B
TypeScript

import client from '@api/client'
export const accountFetch = async (
key: string,
{ id }: { id: string }
): Promise<Mastodon.Account> => {
const res = await client({
method: 'get',
instance: 'local',
url: `accounts/${id}`
})
return Promise.resolve(res.body)
}