Changeset 9a00f28 in Klonkt for src/routes/push.js
- Timestamp:
- 07/22/2026 08:18:39 AM (7 weeks ago)
- Branches:
- main
- Children:
- 6b5d7da
- Parents:
- 96c714f
- git-author:
- Robin <roboburr@…> (07/22/2026 08:18:19 AM)
- git-committer:
- Robin <roboburr@…> (07/22/2026 08:18:39 AM)
- File:
-
- 1 edited
-
src/routes/push.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/push.js
r96c714f r9a00f28 9 9 import { requireAuth } from '../middleware/auth.js'; 10 10 import Push from '../services/PushService.js'; 11 import { t as i18nT, resolveLang } from '../services/i18n.js'; 11 12 12 13 const router = express.Router(); … … 55 56 // A test ping to all of the caller's own devices (bypasses alert prefs). 56 57 router.post('/test', requireAuth, async (req, res) => { 58 const L = resolveLang(req); 57 59 const sent = await Push.notifyUser(req.session.user.id, { 58 type: 'test', title: 'Klonkt-testnotificatie',59 body: 'Werkt. Zo komen meldingen binnen op dit apparaat.', url: '/admin/push',60 type: 'test', title: i18nT(L, 'push.n_test_t'), 61 body: i18nT(L, 'push.n_test_b'), url: '/admin/push', 60 62 }); 61 63 res.json({ ok: true, sent });
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)