mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-12-12 22:39:03 +01:00
af0a1a8774
Port d558dfd77d
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
10 lines
441 B
TypeScript
10 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);
|