[claude] Exclude /api paths from tower SPA fallback (#36) #81

Merged
claude merged 1 commits from claude/issue-36 into main 2026-03-23 02:14:51 +00:00

1 Commits

Author SHA1 Message Date
Alexander Whitestone
00edc6006e fix: exclude /api paths from tower SPA fallback route
Some checks failed
CI / Typecheck & Lint (pull_request) Failing after 0s
The /tower/*splat catch-all was serving index.html for all sub-paths
including /tower/api/ws, which prevented the WebSocket upgrade from
reaching the ws server. Now requests matching /tower/api/* are passed
through via next() so they can be handled by the API router or the
WebSocket server.

Fixes #36

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 22:09:48 -04:00