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,10 @@
import client from 'src/api/client'
export const accountFetch = async (key: string, { id }: { id: string }) => {
const res = await client({
method: 'get',
instance: 'local',
endpoint: `accounts/${id}`
})
return Promise.resolve(res.body)
}