You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
367 B
9 lines
367 B
|
5 months ago
|
import { apiRequestGet, apiRequestDelete } from 'mastodon/api';
|
||
|
|
import type { ApiSuggestionJSON } from 'mastodon/api_types/suggestions';
|
||
|
|
|
||
|
|
export const apiGetSuggestions = (limit: number) =>
|
||
|
|
apiRequestGet<ApiSuggestionJSON[]>('v2/suggestions', { limit });
|
||
|
|
|
||
|
|
export const apiDeleteSuggestion = (accountId: string) =>
|
||
|
|
apiRequestDelete(`v1/suggestions/${accountId}`);
|