package router func registerDashboardRoutes(cfg *Config) { e := cfg.Echo jwtMiddleware := createJWTMiddleware(cfg) protected := e.Group("/api", jwtMiddleware) dashboard := protected.Group("/dashboard") dashboard.GET("/sections", cfg.DashboardHandler.GetSections) dashboard.GET("/preferences", cfg.DashboardHandler.GetPreferences) dashboard.PUT("/preferences", cfg.DashboardHandler.UpdatePreferences) dashboard.POST("/restore-system-collection", cfg.DashboardHandler.RestoreSystemCollection) }