package router func registerOPDSRoutes(cfg *Config) { e := cfg.Echo // OPDS routes (public - device authentication optional) // Note: OPDSHandler implements its own device authentication opds := e.Group("/opds/devices") opds.GET("/:deviceId/catalog", cfg.OPDSHandler.GetDeviceCatalog) opds.GET("/:deviceId/search", cfg.OPDSHandler.SearchDeviceCatalog) opds.GET("/:deviceId/nav", cfg.OPDSHandler.GetDeviceNavigation) opds.GET("/:deviceId/download/:bookId", cfg.OPDSHandler.DownloadBook) opds.GET("/:deviceId/cover/:bookId", cfg.OPDSHandler.GetCoverImage) opds.GET("/:deviceId/formats/:bookId", cfg.OPDSHandler.ListFormats) }