mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-12-09 10:39:03 +01:00
939af853e6
Port 2e03dc9fbf
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
9 lines
447 B
TypeScript
9 lines
447 B
TypeScript
import { apiRequestGet, apiRequestPut } from 'flavours/glitch/api';
|
|
import type { NotificationPolicyJSON } from 'flavours/glitch/api_types/notification_policies';
|
|
|
|
export const apiGetNotificationPolicy = () =>
|
|
apiRequestGet<NotificationPolicyJSON>('v2/notifications/policy');
|
|
|
|
export const apiUpdateNotificationsPolicy = (
|
|
policy: Partial<NotificationPolicyJSON>,
|
|
) => apiRequestPut<NotificationPolicyJSON>('v2/notifications/policy', policy);
|