refactor: remove the server-rendered web UI
CI / chart (push) Successful in 3s
CI / chart-push (push) Successful in 3s
CI / test (push) Successful in 1m53s
CI / image (push) Successful in 4m12s

All browsing and mood management now live in the native client. Drop the
embedded HTML page, the WEB_UI setting, the /ui route and the chart env
entry; the server only exposes /api/v1, /health and a small root banner.
This commit is contained in:
TapTap committed 2026-11-14 19:36:43 +00:00
1 parent 54cf807a9b
commit bf6c9e7394
6 files changed
+7 -646

No files matched your search

+2 -6
View File
@@ -57,14 +57,12 @@ DATA_DIR=./data LIBRARY_CONFIG=./config/library.yaml USERS_FILE=./config/users.y
java -jar build/libs/musicmanager-*-all.jar
```
Open `http://localhost:8080/ui`. The first start scans the library automatically because the database is empty. Later scans are manual:
The server exposes the native API under `/api/v1`; use the Kotlin Multiplatform client for browsing and playback. The first start scans the library automatically because the database is empty. Later scans are manual:
```bash
curl -X POST -H "Authorization: Bearer $TOKEN" http://localhost:8080/api/v1/scan
```
The built-in UI is an admin/management surface: users, moods, seeds, library search, and a browser radio player.
## Configuration
### `library.yaml`
@@ -111,7 +109,6 @@ Passwords are read into memory at startup and never written to SQLite. In produc
| `LIBRARY_CONFIG` | `./config/library.yaml` | Library folders |
| `USERS_FILE` | `./config/users.yaml` | Users and passwords |
| `FFMPEG_PATH` | `ffmpeg` | Transcoder binary |
| `WEB_UI` | `true` | Serve the built-in management UI |
## The mood model
@@ -226,7 +223,7 @@ src/main/kotlin/win/taptap/musicmanager/
`-- util/ # Deterministic IDs, sort names
```
The old OpenSubsonic layer (`/rest`, `subsonic/`, playlist materialization) was removed in 0.2.0. The server and the KMP client are the two halves of the same product; there is no compatibility layer to preserve.
The old OpenSubsonic layer (`/rest`, `subsonic/`, playlist materialization) was removed in 0.2.0. The server and the KMP client are the two halves of the same product; there is no compatibility layer to preserve and no server-rendered UI.
## Database
@@ -314,7 +311,6 @@ The smoke test generates tagged MP3s, starts the server, and verifies login, syn
- [x] MP3 scanner, covers, deterministic IDs, SQLite + Flyway.
- [x] Native bearer-auth API, sync deltas, tombstones.
- [x] Mood CRUD, seeds, server-driven radio, playback events, add-to-mood.
- [x] Built-in management UI on the native API.
- [x] Kotlin Multiplatform client foundation (Android, desktop, web).
- [ ] Offline downloads and offline playback across clients.
- [ ] YT Music discovery through `yt-dlp`, recommendation list, accept/reject.