9 lines
381 B
TypeScript
Raw Normal View History

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}`);