Skip to content

[HIGH] Inconsistent URL path handling #5

@natcrypto

Description

@natcrypto

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions