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

Notification working and end of list working

This commit is contained in:
Zhiyuan Zheng
2020-12-12 18:22:22 +01:00
parent 81a21d1d07
commit 2217d3eb5d
9 changed files with 411 additions and 121 deletions

View File

@ -0,0 +1,16 @@
import client from 'src/api/client'
export const relationshipFetch = async (
key: string,
{ id }: { id: string }
) => {
const res = await client({
method: 'get',
instance: 'local',
url: `accounts/relationships`,
params: {
'id[]': id
}
})
return Promise.resolve(res.body[0])
}