diff --git a/internal/router/library.go b/internal/router/library.go index f09dc4c..177afad 100644 --- a/internal/router/library.go +++ b/internal/router/library.go @@ -16,7 +16,7 @@ func registerLibraryRoutes(cfg *Config) { protected := e.Group("/api", jwtMiddleware) // Create handler for library-specific convenience routes - h := handlers.NewHandler(cfg.Queries, cfg.ConnManager, cfg.QueueProcessor) + h := cfg.ScannerHandler // Public library types endpoint e.GET("/api/libraries/types", cfg.LibraryHandler.GetLibraryTypes)