[PR #3330] [CLOSED] Feature - New endpoint /libraries/stats #3937

Closed
opened 2026-04-25 00:17:38 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/3330
Author: @Vito0912
Created: 8/24/2024
Status: Closed

Base: masterHead: feat/all-stats


📝 Commits (4)

  • 89f6473 added libraries/stats endpoint
  • 858ea50 fixed wrong ide completions
  • 3d90634 added library to be returned instead of libraryId and fixed stupid req.library asignment
  • d6cee0e Merge branch 'advplyr:master' into feat/all-stats

📊 Changes

3 files changed (+77 additions, -33 deletions)

View changed files

📝 server/controllers/LibraryController.js (+30 -33)
📝 server/routers/ApiRouter.js (+1 -0)
📝 server/utils/libraryHelpers.js (+46 -0)

📄 Description

A new endpoint has been added at /libraries/stats to retrieve the statistics for all libraries (Same as /libraries/:id/stats). The endpoint returns a list of individual statistics for each library.

This is part of the preparations for a new page.

Moved logic from stats to Helper class


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf/pull/3330 **Author:** [@Vito0912](https://github.com/Vito0912) **Created:** 8/24/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `feat/all-stats` --- ### 📝 Commits (4) - [`89f6473`](https://github.com/advplyr/audiobookshelf/commit/89f64736f432aa0f25e668b0521c1eae02cca9b8) added libraries/stats endpoint - [`858ea50`](https://github.com/advplyr/audiobookshelf/commit/858ea5010a1f2743dcfeb448c9fa7ad9e1b00821) fixed wrong ide completions - [`3d90634`](https://github.com/advplyr/audiobookshelf/commit/3d906347c3a00af8bcb3a08bd383c0a7167f920c) added library to be returned instead of libraryId and fixed stupid req.library asignment - [`d6cee0e`](https://github.com/advplyr/audiobookshelf/commit/d6cee0e56959475b2aaf512a80c31df7d0d25086) Merge branch 'advplyr:master' into feat/all-stats ### 📊 Changes **3 files changed** (+77 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `server/controllers/LibraryController.js` (+30 -33) 📝 `server/routers/ApiRouter.js` (+1 -0) 📝 `server/utils/libraryHelpers.js` (+46 -0) </details> ### 📄 Description A new endpoint has been added at `/libraries/stats` to retrieve the statistics for all libraries (Same as `/libraries/:id/stats`). The endpoint returns a list of individual statistics for each library. This is part of the preparations for a new page. Moved logic from `stats` to Helper class --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:17:38 +02:00
adam closed this issue 2026-04-25 00:17:38 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#3937