Skip to content

fix: reserve API misses for JSON responses (#158) - #180

Merged
atomantic merged 3 commits into
mainfrom
claim/issue-158
Aug 30, 2026
Merged

fix: reserve API misses for JSON responses (#158)#180
atomantic merged 3 commits into
mainfrom
claim/issue-158

Conversation

@atomantic

Copy link
Copy Markdown
Owner

Summary

  • add a terminal JSON 404 boundary for every unmatched /api method before the production SPA fallback
  • extract the assembled Express application into a testable factory while keeping startup-only lifecycle work in index.ts
  • document API payload exceptions and cover API misses, registered routes, and SPA navigation with the production route order

Test plan

  • npm test -- --run
  • npx vitest run tests/integration
  • npm run build
  • npm run check:file-sizes

Closes #158

@atomantic
atomantic merged commit 57d40db into main Aug 30, 2026
4 checks passed
@atomantic
atomantic deleted the claim/issue-158 branch August 30, 2026 23:38
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.

Reserve /api misses for the JSON API contract before SPA fallback

1 participant