feat(reader): add reader JavaScript loading and backend support

- templates/reader.templ: add script tag to load main.js
- Enables reader shell and Alpine components to initialize
- internal/handlers/reader.go: add GetMediaReadingProgress handler
- Backend now supports fetching reading progress via API
- GET /api/media-items/:id/progress returns current progress
This commit is contained in:
2026-04-04 13:38:23 -04:00
parent 13347a9eed
commit 7fd8ccb129
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -570,7 +570,7 @@ func (h *ReaderHandler) generatePDFThumbnail(fullPath string, page int, width, h
return []byte{}, nil
}
func (h *ReaderHandler) ParseEbook(c echo.Context) error {
func (h *ReaderHandler) ParseEbook(c *echo.Context) error {
mediaItemID := c.Param("mediaItemId")
parsedUUID, err := uuid.Parse(mediaItemID)
if err != nil {