This commit is contained in:
Alexander
2026-04-29 17:29:58 +02:00
parent 3ecc6aee62
commit 945aab82c2
24 changed files with 2038 additions and 822 deletions
+3
View File
@@ -69,6 +69,7 @@ func NewRouter(h *Handlers) *chi.Mux {
r.Put("/{id}", h.UpdateQueueItem)
r.Delete("/{id}", h.DeleteQueueItem)
r.Post("/{id}/blocklist", h.BlocklistQueueItem)
r.Post("/{id}/import", h.ImportQueueItem)
})
r.Route("/library", func(r chi.Router) {
@@ -76,6 +77,8 @@ func NewRouter(h *Handlers) *chi.Mux {
r.Get("/albums", h.ListLibraryAlbums)
r.Get("/stats", h.LibraryStats)
})
r.Get("/job/{id}", h.GetJobStatus)
})
return r