feat: redirect / to the web UI #101

Merged
benvin merged 1 commits from benvin/root-redirect-to-ui into master 2026-07-03 15:00:19 +10:00
Owner

Why

The web UI ships as a separate image served under `/ui` (built with `BASE_PATH=/ui`). Hitting the bare domain (e.g. `https://artifactapi.k8s.syd1.au.unkin.net/`) returned the API's JSON identity blob instead of the app, so browsers never landed on the UI.

Changes

  • Redirect `GET /` to `/ui/` (302 Found).
  • Preserve the former root JSON (`{"name","version"}`) at `/version`, so health/monitoring can still read the running version.
  • Update the server integration test to assert the redirect and the `/version` payload.
## Why The web UI ships as a separate image served under \`/ui\` (built with \`BASE_PATH=/ui\`). Hitting the bare domain (e.g. \`https://artifactapi.k8s.syd1.au.unkin.net/\`) returned the API's JSON identity blob instead of the app, so browsers never landed on the UI. ## Changes - Redirect \`GET /\` to \`/ui/\` (302 Found). - Preserve the former root JSON (\`{"name","version"}\`) at \`/version\`, so health/monitoring can still read the running version. - Update the server integration test to assert the redirect and the \`/version\` payload.
unkinben added 1 commit 2026-07-03 14:53:45 +10:00
feat: redirect / to the web UI
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
0a4d294684
The web UI is served under /ui, but hitting the bare domain returned the
API's JSON identity blob, so browsers never landed on the app. The root
now redirects to /ui/; the identity blob (name + version) moves to
/version so monitoring can still read it.

- redirect GET / to /ui/ (302)
- serve the former root JSON at /version
- update the server test to assert the redirect and the /version payload
benvin merged commit 3a3b7fe7b7 into master 2026-07-03 15:00:19 +10:00
benvin deleted branch benvin/root-redirect-to-ui 2026-07-03 15:00:19 +10:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/artifactapi#101