Documentation
¶
Overview ¶
Package web serves the admin SPA (web/, built by `make web` into dist/) from the homed binary, through MCP Gatekeeper's webui: the SPA's client routes answer index.html (a reload of /devices/tv works), hashed assets under /assets/ are cached for a year, the top-level files of the build (theme.js, the icons, the manifest) revalidate by ETag, and every answer carries the strict CSP of csp.txt (no inline script or style, no eval). Before `make web` the pages answer 503 with a hint.
The public listener serves Routes (the admin at the root, the gatekeeper's /login, /setup, /join and /consent); v0.1's /admin paths answer 308 to /. The first-run listener serves the same build with its one route, /firstrun.
Index ¶
Constants ¶
const FirstRunRoute = "/firstrun"
FirstRunRoute is the first-run page's route on its own listener.
Variables ¶
var Routes = []string{
"/", "/home", "/login", "/setup", "/join", "/consent",
"/connect", "/account", "/account/{rest...}",
"/devices", "/devices/{rest...}", "/activity", "/activity/{rest...}",
"/people", "/people/{rest...}", "/settings", "/settings/{rest...}",
}
Routes are the SPA's client routes on the public listener (docs/ADMIN-API.md §8). A new top-level page of the SPA needs its route here.
Functions ¶
Types ¶
This section is empty.