Fix icons

This commit is contained in:
2026-06-24 19:47:03 -04:00
parent 82c10d9278
commit ff44b7fed5
7 changed files with 150 additions and 6 deletions

View File

@@ -36,6 +36,17 @@ function filterArr(arr, fields) {
return arr.map(row => filterFields(row, fields));
}
// ── Errors ────────────────────────────────────────────────────────────────────
app.use((req, res, next) => {
res.status(404).json({ error: `Not found: ${req.method} ${req.path}` })
})
app.use((err, req, res, next) => {
console.error(`[ERROR] ${req.method} ${req.path}\n${err.stack}`)
res.status(500).json({ error: err.message, stack: err.stack })
})
// ── Current ───────────────────────────────────────────────────────────────────
app.get('/api/current', async (req, res) => {