Add debug logging for push and Service Worker registration

This commit is contained in:
2026-06-02 20:40:41 +02:00
parent 9c91a0f1fc
commit c674aac344
3 changed files with 56 additions and 5 deletions
+5
View File
@@ -22,6 +22,11 @@ router.get('/vapid-public-key', (_req, res) => {
return res.json({ publicKey })
})
router.post('/debug-log', (req, res) => {
console.log('[CLIENT_DEBUG]', req.body)
return res.json({ success: true })
})
router.use(requireUser)
router.get('/prefs', async (req: any, res) => {