dsh-chime v0.1.2
v0.1.2 — 修复自定义音频无法播放/删除 · Fix custom-audio serve & delete
修复 host 路由注册 bug:前缀路由 /api/dsh-chime/audio/ 带尾斜杠,与 webserver 匹配规则(pathname.startsWith(prefix + '/'))拼成双斜杠导致永远不匹配——自定义音频上传后无法播放、无法删除。
Fixed a host route-registration bug: the prefix route carried a trailing slash, which doubled the separator under the webserver matcher and never matched — uploaded custom audio could not be served or deleted.
变更 · Changes
- 🐛 前缀路由改为 /api/dsh-chime/audio(无尾斜杠),GET/DELETE 恢复正常 · prefix route registered without trailing slash
- 🧪 测试脚本新增 webserver 匹配器模拟(exact 优先 + 最长前缀),此类注册错误以后在测试阶段就能暴露 · tests now simulate the real route matcher