1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Restructure the project

This commit is contained in:
Zhiyuan Zheng
2020-11-21 13:19:05 +01:00
parent 3280663144
commit 40266b8ce3
42 changed files with 252 additions and 6619 deletions

View File

@ -0,0 +1,14 @@
import client from 'src/api/client'
export const instanceFetch = async (
key: string,
{ instance }: { instance: string }
) => {
const res = await client({
method: 'get',
instance: 'remote',
instanceUrl: instance,
endpoint: `instance`
})
return Promise.resolve(res.body)
}