Rebuild: NZBs from the chunk store, and a catalog search

lib/nzb (buildNzb, parseNzb) from the current app; NzbService builds a
release's NZB from its chunks; GET /api/v1/releases?q= (every word of the
name) and GET /api/v1/releases/:id/nzb behind the api guard. A test stores
a batch, finds the release and reads its NZB back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Daan MeijerandClaude Opus 5.5 committed 2026-10-09 02:33:27 +02:00
1 parent e9592dfd33
commit fde1e6cc90
15 files changed
+446 -2

No files matched your search

+8
View File
@@ -34,6 +34,14 @@ router
.as('profile')
.use(middleware.auth())
// The catalog (REBUILD.md, part 9).
router
.group(() => {
router.get('releases', [controllers.Releases, 'index'])
router.get('releases/:id/nzb', [controllers.Releases, 'nzb'])
})
.use(middleware.auth({ guards: ['api'] }))
// Edge workers (REBUILD.md, parts 1–2).
router
.group(() => {