Appearance
apps/api/src/features/notifications/notifications.controller.ts ​
Auto-generated by
scripts/generate-file-docs.ts. Do not edit — overwritten on every run.
Purpose ​
Web Push (VAPID) subscription handlers (AB#4433). POST /api/v1/notifications/subscribe/web — upsert a PushSubscription for the authenticated member. Browsers may refresh p256dh/auth while keeping the same endpoint; the upsert handles this transparently. DELETE /api/v1/notifications/subscribe/web — remove the subscription. Called on logout or when the member revokes notification permission in browser settings. No-op if the row is not found. /
Exports ​
export async function subscribeWebexport async function unsubscribeWeb
Imports ​
../../adapters/db../../lib/errors../../lib/response./notifications.schemafastify