Skip to main content

Module console

Module console 

Source
Expand description

The console: a web page served on the TLS listener at /console/. It is a client of the HTTP API and nothing more. Its three files are built into the binary and need no key: they are the same for every caller, hold no data and change nothing. Every request the page makes is an API request that carries the key the user signed in with.

Constants§

HEADERS
The headers on every console answer: no inline code, nothing from another origin, no framing, no sniffing, no referrer, no caching.

Functions§

router
The console’s routes, merged into the API’s router: its three files, /console sent on to /console/, and 404 for any other path under it, each answer with the headers.