routes.js
init({ routes: { '/*': (params) => ` <h1>${params.path}</h1> <p>Generated at ${new Date()}</p> ` } });
One catch-all route turns any URL into a page
Try:
No static files exist for these URLs. A Service Worker intercepts navigation and your function generates the HTML on the fly. Type anything above — it all works.