You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: scope API key to /api/ routes; always log API requests
API_KEY was applied globally via r.Use(), blocking the web browser UI
(which never sends X-Api-Key). The middleware now only enforces the key
on paths starting with /api/ — web UI routes remain accessible from the
browser without any header.
GinMiddleware updated:
- All /api/ requests are now logged at Info level regardless of status,
so every Android/API client call appears in the server log
- 4xx responses log at Warn, 5xx at Error (unchanged)
- User-Agent is included in /api/ log lines to distinguish client types
- Successful web UI page loads stay silent at Info level (debug only)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>