feat(bookmarks): api+store — per-user CRUD, owner-scoped 404, percent-ordered list

This commit is contained in:
2026-09-08 01:03:44 +08:00
parent e117ad52d3
commit 0fe3bc3057
5 changed files with 282 additions and 0 deletions
+4
View File
@@ -53,5 +53,9 @@ func NewRouter(cfg *config.Config, st *store.Store, rdb *redispkg.R, sc *scanner
p.GET("/books/:id/pages/:n", h.Page)
p.PUT("/books/:id/progress", h.PutProgress)
p.GET("/progress", h.ListProgress)
p.GET("/books/:id/bookmarks", h.ListBookmarks)
p.POST("/books/:id/bookmarks", h.CreateBookmark)
p.PATCH("/bookmarks/:id", h.PatchBookmark)
p.DELETE("/bookmarks/:id", h.DeleteBookmark)
return r
}