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:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user