Implement backend reader infrastructure with SSR route and library access control

- Fix function signatures in reader.go (c echo.Context -> c *echo.Context)
- Replace non-existent UserHasLibraryAccess with GetUserVisibleLibraries pattern
- Implement SSR reader route in router/reader.go with proper access control
- Add inline library access checking following existing codebase patterns
- Fix ReadingProgress struct to use LastReadAt instead of CreatedAt/UpdatedAt
- Ensure all reader endpoints use consistent library access validation

This provides the backend foundation for the reader feature with proper
access control and SSR rendering capabilities.
This commit is contained in:
2026-04-03 22:29:01 -04:00
parent 2e0779bec8
commit e7ce0cbe94
3 changed files with 218 additions and 44 deletions
+1 -2
View File
@@ -166,8 +166,7 @@ type ReadingProgress struct {
TotalPages int
Percentage float64
EpubCfi string
CreatedAt time.Time
UpdatedAt time.Time
LastReadAt time.Time
}
type Bookmark struct {