| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2026-05-17 | Restructure repo: move Go server into player-server/ | Paul Buetow | |
| 2026-05-10 | Move self-deletion guard from handler into AdminService (DeleteUser) to fix ↵ | Paul Buetow | |
| SoC violation - Add ErrCannotDeleteSelf sentinel error in service layer. - Change DeleteUser signature to (ctx, callerID, id) across all layers. - Move self-deletion guard from handleDeleteUser handler into userAdminService.DeleteUser. - Update handleError to map ErrCannotDeleteSelf to 400 BadRequest. - Adjust all affected tests to use the new signature. | |||
| 2026-05-10 | api: reject id==0 in handleDeleteUser to avoid 200 OK for invalid path | Paul Buetow | |
| 2026-05-10 | refactor(api): replace all writeJSON 500 error patterns with handleError helper | Paul Buetow | |
| 2026-05-07 | Task 51: add API error helpers | Paul Buetow | |
| 2026-05-02 | fix detached playback and scan progress | Paul Buetow | |
| 2026-05-01 | refactor(api): split monolithic handlers.go into domain-specific files (task 3) | Paul Buetow | |
| Split internal/api/handlers.go (1045 lines) to improve KISS/SRP: - handlers_auth.go – bootstrap, login, logout, health, session cookies - handlers_media.go – sets, media CRUD, tags, favorites, notes, progress - handlers_share.go – create/list/revoke shares, share page, share stream - handlers_admin.go – trash, rescan, users, permissions - handlers_file.go – stream, download, thumbnail, regenerate thumbnail Shared helpers (writeJSON, readJSON, pathID, serveFileResult, mimeTypeForFilename, etc.) remain in handlers.go. All tests pass: go test ./... -race -cover. | |||
