mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-22 14:15:22 +00:00
Fix extra slash on notification policy request (#31378)
This commit is contained in:
parent
85152af95f
commit
2e03dc9fbf
|
@ -2,8 +2,8 @@ import { apiRequestGet, apiRequestPut } from 'mastodon/api';
|
|||
import type { NotificationPolicyJSON } from 'mastodon/api_types/notification_policies';
|
||||
|
||||
export const apiGetNotificationPolicy = () =>
|
||||
apiRequestGet<NotificationPolicyJSON>('/v2/notifications/policy');
|
||||
apiRequestGet<NotificationPolicyJSON>('v2/notifications/policy');
|
||||
|
||||
export const apiUpdateNotificationsPolicy = (
|
||||
policy: Partial<NotificationPolicyJSON>,
|
||||
) => apiRequestPut<NotificationPolicyJSON>('/v2/notifications/policy', policy);
|
||||
) => apiRequestPut<NotificationPolicyJSON>('v2/notifications/policy', policy);
|
||||
|
|
Loading…
Reference in a new issue