Suche: Key-Gen Einträge, Einstellungs-Sektionen, Link-Ordner, Settings-Navigation

This commit is contained in:
2026-06-05 09:26:12 +02:00
parent f4e64811c1
commit a2527b8541
2 changed files with 84 additions and 24 deletions

View File

@@ -15,6 +15,15 @@ router.get('/', authenticate, (req, res) => {
ORDER BY title LIMIT 8
`).all(uid, like, like, like);
let folders = [];
try {
folders = db.prepare(`
SELECT id, name, icon FROM link_list_folders
WHERE user_id=? AND LOWER(name) LIKE ?
ORDER BY name LIMIT 5
`).all(uid, like);
} catch {}
let snippets = [];
try {
snippets = db.prepare(`
@@ -42,7 +51,7 @@ router.get('/', authenticate, (req, res) => {
`).all(uid, like);
} catch {}
res.json({ links, snippets, calculations, orders });
res.json({ links, folders, snippets, calculations, orders });
});
module.exports = router;