- .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.