Documentation
¶
Overview ¶
Package httpapi owns the HTTP route tables shared by both listeners. The public listener requires bootstrapping and authentication; the loopback-only admin listener answers the same JSON API without either and serves no dashboard. Route rules are defined once in dashboard.RegisterAPI and v1.Register and mounted on both muxes; only the "/" catch-all differs (SPA fallback vs JSON 404). Authentication behavior comes from the requestsource in the request context, so the same handler instances serve both listeners.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPrivateMux ¶
BuildPrivateMux mounts the JSON API only: /v1 and /api behave exactly as on public (minus authentication), every other path answers JSON 404. No SPA, no redirects, no dashboard HTML anywhere.
Types ¶
This section is empty.