Code Quality Finding
Severity: high
Category: API Design Consistency
Perspective: architect
File: client/src/lib/queryClient.ts
Line: 12
Description
API prefix logic is duplicated between apiRequest and getQueryFn with slightly different implementations. This creates maintenance burden and potential inconsistencies.
Suggested Fix
Extract URL building logic into a single utility function used by both methods.
This issue was automatically created by Code Quality Agent
Code Quality Finding
Severity: high
Category: API Design Consistency
Perspective: architect
File:
client/src/lib/queryClient.tsLine: 12
Description
API prefix logic is duplicated between apiRequest and getQueryFn with slightly different implementations. This creates maintenance burden and potential inconsistencies.
Suggested Fix
Extract URL building logic into a single utility function used by both methods.
This issue was automatically created by Code Quality Agent