feat: Whiteboard Dot in Liste, Favoriten eingeklappt + Modal bei Klick
This commit is contained in:
@@ -76,6 +76,13 @@ router.get('/unread', authenticate, (req, res) => {
|
||||
res.json({ count });
|
||||
});
|
||||
|
||||
// ── Unread IDs (welche Whiteboards konkret) ───────────────────────────────────
|
||||
router.get('/unread-ids', authenticate, (req, res) => {
|
||||
const me = uid(req);
|
||||
const rows = db.prepare('SELECT whiteboard_id FROM whiteboard_unread WHERE user_id=?').all(me);
|
||||
res.json({ ids: rows.map(r => r.whiteboard_id) });
|
||||
});
|
||||
|
||||
// ── Liste ─────────────────────────────────────────────────────────────────────
|
||||
router.get('/', authenticate, (req, res) => {
|
||||
const me = uid(req);
|
||||
|
||||
Reference in New Issue
Block a user