mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
fix(apns): wire per-channel Test senden button to a real endpoint (v1.4.47.6)
TEST_ENDPOINTS map was missing APNS. Add /api/notifications/apns/test route + map entry.
This commit is contained in:
1 parent
5803612e4d
commit
30ab2112db
4 files changed
+102
-2
No files matched your search
@@ -35,7 +35,7 @@ import { useAuth } from "@/hooks/use-auth";
|
||||
import { useFormatters, useTranslations } from "@/lib/i18n/context";
|
||||
import { queryKeys } from "@/lib/query-keys";
|
||||
|
||||
type ChannelType = "TELEGRAM" | "NTFY" | "WEB_PUSH";
|
||||
type ChannelType = "TELEGRAM" | "NTFY" | "WEB_PUSH" | "APNS";
|
||||
|
||||
type ChannelState =
|
||||
| "active"
|
||||
@@ -61,6 +61,7 @@ const TEST_ENDPOINTS: Record<ChannelType, string> = {
|
||||
TELEGRAM: "/api/settings/telegram/test",
|
||||
NTFY: "/api/settings/ntfy/test",
|
||||
WEB_PUSH: "/api/notifications/web-push/test",
|
||||
APNS: "/api/notifications/apns/test",
|
||||
};
|
||||
|
||||
export function NotificationStatusCard() {
|
||||
|
||||
Reference in new issue
Block a user