Find Pages Under A Site Mount
A published site is read over plain HTTP from its delivery URL. A site can live at a path, such as /acme/en/, so keep that path in front of every request.
Read The Index
Set SITE to the full site URL without a trailing slash. On a local FOLD with the demo published, that's the address below.
SITE=http://fold.localhost:8787/local/demo
curl -fsS "$SITE/_fold/index.json"
The index is a JSON array of page paths and titles. Markdown and HTML pages appear in it. A page whose path is /guide/ is at $SITE/guide/.
Read A Page
Each Markdown page is available as HTML, as Markdown and as plain text.
curl -fsS "$SITE/"
curl -fsS "$SITE/index.md"
curl -fsS "$SITE/index.txt"
Fetch JSON files, plain text and media by their authored paths. Directory inputs and routes
Where A Site Can Be Mounted
The same release is served wherever its site is mounted. A site named en in an organization named acme can be at /acme/en/ on the platform host, at /en/ on the organization's own domain, or at / on a domain of its own. Publishing and rollback change all of them together.
Download A File
Open a binary path to view it inline. Add ?download to receive it as an attachment with its filename. On a preview URL that already has a grant, add &download.
Next: Revalidate a cached copy