feat(backend): reading progress upsert + listing, path-keyed survival

This commit is contained in:
2026-09-05 20:59:11 +08:00
parent 8206c7a4ed
commit 8f18072843
3 changed files with 134 additions and 0 deletions
+2
View File
@@ -41,5 +41,7 @@ func NewRouter(cfg *config.Config, st *store.Store, rdb *redispkg.R, sc *scanner
p.GET("/books/:id/file", a.serveFile)
p.GET("/books/:id/pages", a.pagesCount)
p.GET("/books/:id/pages/:n", a.page)
p.PUT("/books/:id/progress", a.putProgress)
p.GET("/progress", a.listProgress)
return r
}