Skip to content

Conversation

@ptxmac
Copy link

@ptxmac ptxmac commented Dec 2, 2025

Instead of calling /api and /ws this change make it ./api and ./ws (relative to the window location.

This allows mounting the ui on a different path in services that already have an HTTP server with existing routes.

Frontend now uses relative paths (./api) which automatically work
when the router is mounted at any prefix by an external mux.
WebSocket URL is constructed from window.location to include prefix.
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