Skip to content

[1962] Unify frontend API root normalization - #2744

Open
Chris0Jeky wants to merge 1 commit into
mainfrom
issue-1962/api-root
Open

[1962] Unify frontend API root normalization#2744
Chris0Jeky wants to merge 1 commit into
mainfrom
issue-1962/api-root

Conversation

@Chris0Jeky

Copy link
Copy Markdown
Owner

Summary

  • extract the terminal-/api normalization shared by version and realtime paths
  • preserve the existing versionApi export/test contract while using the shared utility
  • keep /health/live and /hubs/boards suffixes at their existing server-root paths

Proof

  • red-first api-root suite failed before the utility existed with the expected unresolved import
  • API-root, versionApi, and useBoardRealtime suites: 46 passed
  • table coverage includes empty/root-relative/absolute/deployment-subpath/trailing-slash/terminal-/api and substring cases
  • npm run lint (8 pre-existing warnings, 0 errors)
  • npm run typecheck
  • npm run build (known ineffective dynamic-import warning only)
  • git diff --check

Refs #1962

No issue close or merge requested; this PR is intentionally left open for review.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Pending

Development

Successfully merging this pull request may close these issues.

1 participant