feat(backend): book list/detail/delete with embedded progress + cache cleanup

This commit is contained in:
2026-09-05 00:42:08 +08:00
parent 193d7612b5
commit 249619b857
7 changed files with 339 additions and 26 deletions
+4
View File
@@ -33,5 +33,9 @@ func NewRouter(cfg *config.Config, st *store.Store, rdb *redispkg.R, sc *scanner
libs.POST("", a.adminOnly(), a.createLibrary)
libs.POST("/:id/scan", a.adminOnly(), a.scanLibrary)
libs.POST("/:id/upload", a.adminOnly(), a.upload)
p.GET("/books", a.listBooks)
p.GET("/books/:id", a.getBook)
p.DELETE("/books/:id", a.adminOnly(), a.deleteBook)
return r
}