mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-15 20:20:09 +00:00
- Extract generic shouldCacheQuotaResult replacing 4 identical functions - Move parseTarget to route-helpers.ts (was duplicated in profile/variant routes) - Add createRouteErrorHelpers factory (was duplicated in auth/settings routes) - Fix config read-then-write race in proxy-routes.ts and misc-routes.ts using mutateUnifiedConfig for atomic read-modify-write - Replace raw error messages in 500 responses with generic messages + server-side logging across all cliproxy-stats-routes handlers - Convert extractErrorLogMetadata from sync fs to async fs.promises