feat: add download tracking endpoints (sections 4.1, 4.2, 4.3, 4.4)
This commit is contained in:
@@ -60,6 +60,17 @@ func NewRouter(h *Handlers) *chi.Mux {
|
||||
|
||||
r.Post("/blocklist", h.AddToBlocklist)
|
||||
|
||||
r.Route("/queue", func(r chi.Router) {
|
||||
r.Get("/", h.ListQueue)
|
||||
r.Post("/", h.AddToQueue)
|
||||
r.Post("/sync", h.SyncQueue)
|
||||
r.Get("/stats", h.QueueStats)
|
||||
r.Get("/{id}", h.GetQueueItem)
|
||||
r.Put("/{id}", h.UpdateQueueItem)
|
||||
r.Delete("/{id}", h.DeleteQueueItem)
|
||||
r.Post("/{id}/blocklist", h.BlocklistQueueItem)
|
||||
})
|
||||
|
||||
r.Route("/library", func(r chi.Router) {
|
||||
r.Get("/artists", h.ListLibraryArtists)
|
||||
r.Get("/albums", h.ListLibraryAlbums)
|
||||
|
||||
Reference in New Issue
Block a user