Fix: Status page not displaying data - fix /api/resources response format

This commit is contained in:
nmemmert committed 2025-12-16 13:50:20 -05:00
1 parent 5ff9fd6c99
commit 51bc5ea6be
1 file changed
+1 -1
+1 -1
View File
@@ -112,7 +112,7 @@ app.delete('/api/groups/:id', (req, res) => {
// Get all resources
app.get('/api/resources', (req, res) => {
const resources = db.prepare('SELECT * FROM resources ORDER BY group_id, name').all();
res.json(resources);
res.json({ resources });
});
// Get single resource with stats