mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-12-03 10:49:02 +01:00
11 lines
441 B
TypeScript
11 lines
441 B
TypeScript
|
import { apiRequest } from 'flavours/glitch/api';
|
||
|
import type { NotificationPolicyJSON } from 'flavours/glitch/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);
|