From e391bea837f9740aa8b303dedb6f87c09abd4201 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 2 May 2026 22:08:46 +0300 Subject: fix detached playback and scan progress --- internal/api/handlers_admin.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'internal/api/handlers_admin.go') diff --git a/internal/api/handlers_admin.go b/internal/api/handlers_admin.go index 246a466..e9935d4 100644 --- a/internal/api/handlers_admin.go +++ b/internal/api/handlers_admin.go @@ -33,6 +33,13 @@ func (s *Server) handleRescan(w http.ResponseWriter, r *http.Request) { writeJSON(w, http.StatusOK, map[string]string{"status": "ok"}) } +func (s *Server) handleScanProgress(w http.ResponseWriter, r *http.Request) { + if !requireService(w, s.adminSvc) { + return + } + writeJSON(w, http.StatusOK, s.adminSvc.ScanProgress(r.Context())) +} + func (s *Server) handleListUsers(w http.ResponseWriter, r *http.Request) { if !requireService(w, s.adminSvc) { return -- cgit v1.2.3