Skip to content

Commit 922c04f

Browse files
authored
Refactor API route setup in gitops.go for improved organization and clarity (#933)
- Introduced SetupAllRoutes function to initialize all API routes. - Organized routes into dedicated setup functions: setupHealthRoutes, setupGitopsRoutes, setupHelmRoutes, setupGitHubRoutes, setupWebhookRoutes, and setupValidationRoutes. - Enhanced GitOps routes with additional endpoints for deployment status, listing, and deletion. - Consolidated Helm routes for deployment and retrieval under a single group. - Added GitHub deployment routes with specific handlers for listing, retrieving, and deleting deployments. - Implemented webhook configuration routes with Redis integration for storing and retrieving settings. - Established validation routes for testing repository access and Kubernetes connectivity. - Created a combined deployment history endpoint to retrieve GitHub, Helm, and manifests data in a single response.
1 parent 5295a06 commit 922c04f

File tree

2 files changed

+1370
-316
lines changed

2 files changed

+1370
-316
lines changed

0 commit comments

Comments
 (0)