Complete API handlers refactoring to eliminate type switching and use repository pattern consistently

This commit is contained in:
2025-10-08 20:36:20 +02:00
parent 01b921bfa3
commit bbf728d110
16 changed files with 268 additions and 2654 deletions

View File

@@ -105,8 +105,7 @@ func runEnhance(cmd *cobra.Command, args []string) {
defer database.Close()
client = database.NewContentRepository()
} else {
fmt.Printf("🧪 No database or API configured, using mock content\n")
client = content.NewMockClient()
panic("🧪 No database or API configured\n")
}
// Load site-specific configuration