mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
17 lines
310 B
TypeScript
17 lines
310 B
TypeScript
import client from '@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])
|
|
}
|