lith: route api.aesthetic.computer + /api + /api-docs to api-docs
On Netlify these were redirect rules in netlify.toml; lith's Express server
never learned about them, so api.aesthetic.computer/, aesthetic.computer/api,
and aesthetic.computer/api-docs were falling through to the prompt piece
instead of the public API reference.
- Host middleware now rewrites api.aesthetic.computer/ and api.prompt.ac/
to /api-docs.
- Direct routes added for /api, /api-docs, /api-docs.json (all serve the
api-docs function, which content-negotiates HTML vs JSON).
- api-docs HTML renderer is now defensive about missing example fields
(curl/js/py/response can be omitted without breaking the page).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>