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:
16
src/utils/fetches/relationshipFetch.ts
Normal file
16
src/utils/fetches/relationshipFetch.ts
Normal 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])
|
||||
}
|
Reference in New Issue
Block a user