Files
ReadMeABook/documentation/TABLEOFCONTENTS.md
T
kikootwo 6ec53ff7e3 Add API token allowlist, docs, UI and tests
Introduce API token allowlist support and documentation. Adds a new backend docs page for API tokens and updates TABLEOFCONTENTS. Implements API token constants and a compiled matcher (isEndpointAllowed) with support for single-segment :placeholders and an isWrite flag. Split getCurrentUser into a JWT-only helper and added getCurrentUserAsync to recognize rmab_ API tokens; updated the audiobooks search route to use getCurrentUserAsync. Update API docs UI (EndpointCard and api-docs page) to surface Write badges and disable "Try it" for mutating endpoints, and add a profile warning in ApiTokensSection. Add tests for the allowlist matcher and middleware, and adjust existing route tests/mocks accordingly.
2026-05-16 14:17:49 -04:00

16 KiB

Documentation Table of Contents

Purpose: Quick navigation for AI to locate relevant documentation without reading all files.

Authentication & Users

Configuration & Setup

Database & Data Models

Plex Integration

Audiobookshelf Integration

Reading Shelves (Goodreads, Hardcover)

Audible Integration

E-book Support (First-Class)

Automation Pipeline

Background Jobs

Logging

Notifications

Frontend Components

BookDate (AI Recommendations)

Admin Features

Fixes & Improvements

Deployment

Testing

Feature-Specific Lookups

"How do I add a new audiobook?"integrations/audible.md (scraping), phase3/README.md (automation) "How do I configure multiple download clients?"phase3/download-clients.md "How do torrent downloads work?"phase3/qbittorrent.md, backend/services/jobs.md "How do Usenet/NZB downloads work?"phase3/sabnzbd.md, phase3/download-clients.md, backend/services/jobs.md "Can I use both qBittorrent and SABnzbd?"phase3/download-clients.md "How do I use NZBGet instead of SABnzbd?"phase3/download-clients.md "How do I use Transmission instead of qBittorrent?"phase3/download-clients.md "How do I set different download paths per client?"phase3/download-clients.md "How does Plex matching work?"integrations/plex.md "How does e-book support work?"integrations/ebook-sidecar.md "How do I enable e-book downloads?"integrations/ebook-sidecar.md, settings-pages.md "How do I configure ebook sources (Anna's Archive vs Indexer)?"settings-pages.md "How does ebook indexer search work?"integrations/ebook-sidecar.md "How do I configure ebook categories per indexer?"settings-pages.md "How does ebook ranking work?"phase3/ranking-algorithm.md "What happens when I delete an ebook request?"integrations/ebook-sidecar.md "Why do ebook requests have an orange badge?"integrations/ebook-sidecar.md "How do scheduled jobs work?"backend/services/scheduler.md "How do I configure external services?"setup-wizard.md, settings-pages.md "What's the database schema?"backend/database.md "How does authentication work?"backend/services/auth.md "How do I change my password?"backend/services/auth.md (local users only - accessed via user menu in header) "Local admin can't log in / 'Invalid username or password' with correct credentials"admin-features/credential-recovery.md "How do I recover from a lost CONFIG_ENCRYPTION_KEY?"admin-features/credential-recovery.md "How do I delete requests?"admin-features/request-deletion.md "How do I approve/deny user requests?"admin-features/request-approval.md "How do I enable auto-approve for requests?"admin-features/request-approval.md "How does the admin book info modal work?"admin-features/request-approval.md, frontend/components.md "How do I customize audiobook folder organization?"settings-pages.md, phase3/file-organization.md "How do I deploy?"deployment/docker.md (multi-container), deployment/unified.md (all-in-one) "How do I use the unified container?"deployment/unified.md "Why can't RMAB find my downloaded files?"deployment/volume-mapping.md "How do I set up volume mapping for qBittorrent/Transmission/SABnzbd/NZBGet?"deployment/volume-mapping.md "OAuth redirects to localhost / PUBLIC_URL not working"backend/services/environment.md "What environment variables do I need?"backend/services/environment.md "How does chapter merging work?"features/chapter-merging.md "How does logging work?"backend/services/logging.md "How do BookDate card stack animations work?"features/bookdate-animations.md "How does Audiobookshelf integration work?"src/lib/services/audiobookshelf/api.ts, src/lib/services/library/AudiobookshelfLibraryService.ts "How do I use OIDC/Authentik/Keycloak?"backend/services/auth.md "How do I switch from Plex to Audiobookshelf?" → Setup wizard (re-run setup with different backend mode) "How does library thumbnail caching work?"features/library-thumbnail-cache.md "Why do BookDate library books show placeholders?"features/library-thumbnail-cache.md "How does file hash matching work?"fixes/file-hash-matching.md "Why is ABS matching the wrong book?"fixes/file-hash-matching.md (file hash prevents false positives) "How do I customize my home page?"features/home-sections.md "How do Audible categories work?"features/home-sections.md "How do I add category sections to the home page?"features/home-sections.md "How do Goodreads shelves work?"backend/services/goodreads-sync.md "How do Hardcover shelves work?"backend/services/hardcover-sync.md "How do I add a new shelf provider?"backend/services/goodreads-sync.md "How does the shelf sync core work?"backend/services/goodreads-sync.md "How does bulk import work?"features/bulk-import.md "How do I import multiple audiobooks at once?"features/bulk-import.md "How does the bulk import scanner detect audiobooks?"features/bulk-import.md