feat(backend): book list/detail/delete with embedded progress + cache cleanup
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user