mirror of
https://github.com/funamitech/mastodon
synced 2024-12-12 21:59:04 +09:00
16 lines
327 B
TypeScript
16 lines
327 B
TypeScript
|
import { apiRequestGet } from 'mastodon/api';
|
||
|
import type { ApiAccountJSON } from 'mastodon/api_types/accounts';
|
||
|
|
||
|
export const apiGetDirectory = (
|
||
|
params: {
|
||
|
order: string;
|
||
|
local: boolean;
|
||
|
offset?: number;
|
||
|
},
|
||
|
limit = 20,
|
||
|
) =>
|
||
|
apiRequestGet<ApiAccountJSON[]>('v1/directory', {
|
||
|
...params,
|
||
|
limit,
|
||
|
});
|