Skip to content

Mount web UI under /ui#148

Open
andrew wants to merge 1 commit into
mainfrom
ui-prefix
Open

Mount web UI under /ui#148
andrew wants to merge 1 commit into
mainfrom
ui-prefix

Conversation

@andrew
Copy link
Copy Markdown
Contributor

@andrew andrew commented May 23, 2026

Closes #123.

The web UI now lives under /ui so a reverse proxy can apply different access rules to it (e.g. require auth on PathPrefix(/ui)) while leaving the package endpoints (/npm, /pypi, /v2, ...) open to build machines. GET / redirects to /ui/.

/api/browse and /api/compare move to /ui/api/browse and /ui/api/compare since only the browser JS calls them. /health, /stats, /metrics, /openapi.json and the rest of /api/* stay at root.

This is a breaking change for anyone with bookmarks to the old UI paths or scripts hitting /api/browse / /api/compare directly.

The UI now lives under /ui so reverse proxies can apply different
access rules to it (e.g. require auth) while leaving the package
endpoints (/npm, /pypi, /v2, ...) open to build machines.

- GET / redirects to /ui/
- /api/browse and /api/compare move to /ui/api/browse and
  /ui/api/compare since only the browser JS calls them
- /health, /stats, /metrics, /openapi.json and /api/* stay at root
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.

Seperate URL for UI and package API

1 participant