mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-12-02 20:59:03 +01:00
8160a655a5
Port 863c470a2b
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
15 lines
341 B
TypeScript
15 lines
341 B
TypeScript
import { apiRequestGet } from 'flavours/glitch/api';
|
|
import type { ApiAccountJSON } from 'flavours/glitch/api_types/accounts';
|
|
|
|
export const apiGetDirectory = (
|
|
params: {
|
|
order: string;
|
|
local: boolean;
|
|
offset?: number;
|
|
},
|
|
limit = 20,
|
|
) =>
|
|
apiRequestGet<ApiAccountJSON[]>('v1/directory', {
|
|
...params,
|
|
limit,
|
|
});
|