package router func registerOPDSRoutes(cfg *Config) { e := cfg.Echo // OPDS routes (public - device authentication optional) // Note: OPDSHandler implements its own device authentication e.GET("/opds/:id", cfg.OPDSHandler.GetDeviceCatalog) e.GET("/opds/:id/search", cfg.OPDSHandler.SearchDeviceCatalog) e.GET("/opds/:id/download", cfg.OPDSHandler.DownloadBook) e.GET("/opds/:id/cover", cfg.OPDSHandler.GetCoverImage) e.GET("/opds/:id/navigation", cfg.OPDSHandler.GetDeviceNavigation) e.GET("/opds/:id/formats", cfg.OPDSHandler.ListFormats) e.POST("/opds/register", cfg.OPDSHandler.RegisterOPDS) }