From ffc54623262a1fbd666818dbc5a5c3d78adc6821 Mon Sep 17 00:00:00 2001 From: Evan Reichard Date: Sun, 5 Nov 2023 21:38:10 -0500 Subject: [PATCH] [fix] opds no redirect - KOReader OPDS compatibility --- api/api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/api.go b/api/api.go index 7ca15c8..f064a6f 100644 --- a/api/api.go +++ b/api/api.go @@ -163,6 +163,7 @@ func (api *API) registerOPDSRoutes(apiGroup *gin.RouterGroup) { opdsGroup := apiGroup.Group("/opds") // OPDS Routes + opdsGroup.GET("", api.authOPDSMiddleware, api.opdsDocuments) opdsGroup.GET("/", api.authOPDSMiddleware, api.opdsDocuments) opdsGroup.GET("/documents/:document/cover", api.authOPDSMiddleware, api.getDocumentCover) opdsGroup.GET("/documents/:document/file", api.authOPDSMiddleware, api.downloadDocument)