1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
Files
tooot/src/utils/fetches/instanceFetch.ts
Zhiyuan Zheng b274aef31a Basic attachment done
Switch from ky to axios
2020-12-05 01:55:53 +01:00

15 lines
297 B
TypeScript

import client from 'src/api/client'
export const instanceFetch = async (
key: string,
{ instance }: { instance: string }
) => {
const res = await client({
method: 'get',
instance: 'remote',
instanceDomain: instance,
url: `instance`
})
return Promise.resolve(res.body)
}