chore(main): initialize and register SystemSettingsHandler

Add SystemSettingsHandler initialization in main.go:
- Create systemSettingsHandler instance with queries
- Add to router.Config for route registration
- Properly wired with existing dependencies

This enables the system settings endpoints to be registered and functional.
This commit is contained in:
2026-02-09 20:10:53 -05:00
parent 0551f17f0e
commit bee6d588d6
+2
View File
@@ -82,6 +82,7 @@ func main() {
loginAttemptTracker := ratelimit.NewLoginAttemptTracker(5, 15*time.Minute, 5*time.Minute) loginAttemptTracker := ratelimit.NewLoginAttemptTracker(5, 15*time.Minute, 5*time.Minute)
authHandler := handlers.NewAuthHandler(queries, cfg.JWTSecret, loginAttemptTracker) authHandler := handlers.NewAuthHandler(queries, cfg.JWTSecret, loginAttemptTracker)
systemSettingsHandler := handlers.NewSystemSettingsHandler(queries)
libraryHandler := handlers.NewLibraryHandler(queries) libraryHandler := handlers.NewLibraryHandler(queries)
deviceHandler := handlers.NewDeviceHandler(queries, cfg.JWTSecret, cfg) deviceHandler := handlers.NewDeviceHandler(queries, cfg.JWTSecret, cfg)
deviceAuthMiddleware := middleware.NewDeviceAuthMiddleware(queries) deviceAuthMiddleware := middleware.NewDeviceAuthMiddleware(queries)
@@ -162,6 +163,7 @@ func main() {
QueueHandler: queueHandler, QueueHandler: queueHandler,
CollectionHandler: collectionHandler, CollectionHandler: collectionHandler,
OPDSHandler: opdsHandler, OPDSHandler: opdsHandler,
SystemSettingsHandler: systemSettingsHandler,
ConnManager: connManager, ConnManager: connManager,
QueueProcessor: queueProcessor, QueueProcessor: queueProcessor,
DeviceAuthMiddleware: deviceAuthMiddleware, DeviceAuthMiddleware: deviceAuthMiddleware,