优化扫描
All checks were successful
Go CI / test-and-build (push) Successful in 14s
Web CI / lint-test-build (push) Successful in 28s

This commit is contained in:
2026-04-11 13:57:48 +08:00
parent 169b2c1858
commit 3f82e29c6c
11 changed files with 392 additions and 76 deletions

View File

@@ -45,8 +45,8 @@ func main() {
r.Put("/{id}/name", libraryController.UpdateName)
r.Put("/{id}/path", libraryController.UpdatePath)
r.Post("/{id}/scan", libraryController.Scan)
r.Get("/{id}/scan-status", libraryController.GetScanStatus)
r.Get("/{id}/songs", libraryController.GetSongs)
r.Get("/scan-status", libraryController.GetScanStatus)
})
r.Route("/api/songs", func(r chi.Router) {