tooot/src/utils/fetches/accountFetch.ts

11 lines
250 B
TypeScript
Raw Normal View History

2020-12-13 14:04:25 +01:00
import client from '@api/client'
export const accountFetch = async (key: string, { id }: { id: string }) => {
const res = await client({
method: 'get',
instance: 'local',
url: `accounts/${id}`
})
return Promise.resolve(res.body)
}