Documentation
¶
Overview ¶
Package httpapi wires the Control Tower read endpoint into the server's http.ServeMux. The route is GET /api/v1/projects/{id}/control-tower; the handler validates the project id, renders the snapshot, and writes it as JSON. It mirrors the closure-factory + writeResult shape used across the codebase (diagnostics.RegisterRoutes, projectautomation/httpapi/httpapi.go).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes(mux *http.ServeMux, svc *controltower.Service)
RegisterRoutes mounts the Control Tower read endpoints. It is a no-op if either dependency is nil, mirroring diagnostics.RegisterRoutes' guard. Two routes: the project-scoped snapshot (R1) and the global/all snapshot (R1b).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.