httpapi

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2026 License: MIT Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL