fix(web): track and repair the /api/logs route

- .gitignore: the bare 'logs' rule was matching the api/logs/ source
  dir, so the route was never committed. Anchor it to /logs/ and repair
  two log globs where '*' had been mangled to '_'.
- route.ts: add the missing 'import sql' — the file used sql but never
  imported it, so every GET/POST /api/logs threw ReferenceError and 500'd.
This commit is contained in:
Bas van Rossem
2026-06-17 11:15:55 +02:00
parent be280b4b29
commit 9689b84e8d
2 changed files with 50 additions and 3 deletions

6
.gitignore vendored
View File

@@ -20,9 +20,9 @@ coverage
*.lcov
# logs
logs
_.log
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
/logs/
*.log
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# dotenv environment variable files
.env