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

1 Commits

Author SHA1 Message Date
unkinben 0a4d294684 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
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
2026-07-03 14:53:33 +10:00