Skip to content

[codex] fix SSR routing for /api page#58

Open
SerhatSoruklu wants to merge 2 commits into
mainfrom
feature/rmg-api-proxy-fix
Open

[codex] fix SSR routing for /api page#58
SerhatSoruklu wants to merge 2 commits into
mainfrom
feature/rmg-api-proxy-fix

Conversation

@SerhatSoruklu
Copy link
Copy Markdown
Owner

What changed

  • Narrowed the SSR API proxy so it only catches /api/v1 and /api/ai-events.
  • This stops the /api frontend page from being intercepted and proxied to the backend.

Why

  • The /api route is a frontend contract page.
  • Before this fix, /api/ was being treated as a backend API request and returned Cannot GET /api/.

Validation

  • npm run build
  • npm run typecheck
  • Local SSR check: /api/ now returns the Angular page, while /api/v1 still proxies.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 8, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
91.3% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant