Suche: Key-Gen Einträge, Einstellungs-Sektionen, Link-Ordner, Settings-Navigation
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user