mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-12-04 16:49:03 +01:00
10 lines
427 B
TypeScript
10 lines
427 B
TypeScript
import { apiRequest } from 'mastodon/api';
|
|
import type { NotificationPolicyJSON } from 'mastodon/api_types/notification_policies';
|
|
|
|
export const apiGetNotificationPolicy = () =>
|
|
apiRequest<NotificationPolicyJSON>('GET', '/v1/notifications/policy');
|
|
|
|
export const apiUpdateNotificationsPolicy = (
|
|
policy: Partial<NotificationPolicyJSON>,
|
|
) =>
|
|
apiRequest<NotificationPolicyJSON>('PUT', '/v1/notifications/policy', policy);
|