mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-27 15:01:36 +01:00
9 lines
435 B
TypeScript
9 lines
435 B
TypeScript
import { apiRequestGet, apiRequestPut } from 'mastodon/api';
|
|
import type { NotificationPolicyJSON } from 'mastodon/api_types/notification_policies';
|
|
|
|
export const apiGetNotificationPolicy = () =>
|
|
apiRequestGet<NotificationPolicyJSON>('/v2/notifications/policy');
|
|
|
|
export const apiUpdateNotificationsPolicy = (
|
|
policy: Partial<NotificationPolicyJSON>,
|
|
) => apiRequestPut<NotificationPolicyJSON>('/v2/notifications/policy', policy);
|