mirror of
https://github.com/funamitech/mastodon
synced 2024-12-15 07:09:03 +09:00
af0a1a8774
Port d558dfd77d
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
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);
|