diff --git a/src/controllers/api/push.ts b/src/controllers/api/push.ts index 9eef700c..04f2314c 100644 --- a/src/controllers/api/push.ts +++ b/src/controllers/api/push.ts @@ -9,7 +9,7 @@ import { getTokenHash } from '@/utils/auth.ts'; const pushSubscribeSchema = z.object({ subscription: z.object({ - endpoint: z.string(), + endpoint: z.string().url(), keys: z.object({ p256dh: z.string(), auth: z.string(),