Files
token-circles/backend/middleware
Komediruzecki d17d0ca344 fix(api): correct auth error status codes, normalize gate, drop dead import
getProfileId/getProfileIds threw plain Errors carrying a statusCode, but the
first error handler only maps AppError, so they surfaced as HTTP 500 instead of
401/403. Throw UnauthorizedError / AppError(403) so the status codes are right.

Also normalize a trailing slash in the auth gate so /api/auth/login/ is still
treated as public, and remove the now-unused toCamelCase import in portfolio.js.
2026-06-27 19:33:06 +02:00
..