tercul-backend/cmd
google-labs-jules[bot] b87580442a refactor(api): centralize server setup in NewAPIServer
Refactored the API server setup to improve modularity and simplify the main application entry point.

- Created a new `NewAPIServer` function in `cmd/api/server.go` that encapsulates the creation and configuration of the `http.ServeMux`.
- This new function now handles the registration of all API routes, including the GraphQL endpoint (`/query`), the GraphQL Playground (`/playground`), and the Prometheus metrics endpoint (`/metrics`).
- Simplified `cmd/api/main.go` by removing the manual `ServeMux` creation and instead calling the new `NewAPIServer` function.
- This change makes the `main` function cleaner and more focused on its core responsibilities of application initialization and graceful shutdown.
2025-10-07 13:48:46 +00:00
..
api refactor(api): centralize server setup in NewAPIServer 2025-10-07 13:48:46 +00:00
tools feat: Implement critical features and fix build 2025-10-05 18:29:18 +00:00
worker feat: Complete large-scale refactor and prepare for production 2025-10-07 11:09:37 +00:00