mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-03 21:43:40 -05:00
f441e3db4e
Port 7a3dea385e48c72ff4d1553709f618bc5070b255 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
9 lines
381 B
TypeScript
9 lines
381 B
TypeScript
import { apiRequestGet, apiRequestDelete } from 'flavours/glitch/api';
|
|
import type { ApiSuggestionJSON } from 'flavours/glitch/api_types/suggestions';
|
|
|
|
export const apiGetSuggestions = (limit: number) =>
|
|
apiRequestGet<ApiSuggestionJSON[]>('v2/suggestions', { limit });
|
|
|
|
export const apiDeleteSuggestion = (accountId: string) =>
|
|
apiRequestDelete(`v1/suggestions/${accountId}`);
|