mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-20 09:36:16 +00:00
Prepare soundtouch-web to be folded into soundtouch-service as an additive mount. Two changes, no behaviour change for the standalone binary: - Move the embedded assets from /static/* to /app/static/*, so the whole web UI lives under /api/control + /app and nothing contends with a host router's own /static (e.g. the optional Stockholm bridge's root catch-all). index.html and app.js asset references are updated in lockstep. - Split Mount into a portable core and a standalone wrapper. MountWeb registers only the portable surface (/app/static/*, /api/control/*, /app/*) and nothing outside those subtrees (no /, no /health), so it can be mounted into another router additively. Mount (used by cmd/soundtouch-web) now calls MountWeb and adds the standalone-only /health and /->/app redirect. mount_test.go exercises MountWeb (asserts the portable surface owns nothing outside /api/control + /app) and Mount (asserts it adds / and /health). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>