mirror of
https://github.com/SamyRai/tercul-backend.git
synced 2025-12-27 04:01:34 +00:00
This commit refactors the API server startup logic in `cmd/api/main.go` to simplify the application's architecture. Key changes: - Consolidates the three separate HTTP servers (GraphQL API, GraphQL Playground, and Prometheus metrics) into a single `http.Server` instance. - Uses a single `http.ServeMux` to route requests to the appropriate handlers on distinct paths (`/query`, `/playground`, `/metrics`). - Removes the now-redundant `PlaygroundPort` from the application's configuration. This change simplifies the server startup and shutdown logic, reduces resource usage, and makes the application's entry point cleaner and easier to maintain. |
||
|---|---|---|
| .. | ||
| integration_test_utils.go | ||
| mock_base_repository.go | ||
| mock_jwt_manager.go | ||
| mock_like_service.go | ||
| mock_translation_repository.go | ||
| mock_user_repository.go | ||
| mock_weaviate_wrapper.go | ||
| mock_work_repository.go | ||
| simple_test_utils.go | ||
| test_entity.go | ||
| testutil.go | ||