Everything is a route: how to use one interface for servers, static-site- and asset-generation

In Unix, everything is a file. In Mastro, everything is a route. You use the same standards-based Request/Response-API not only for writing your server, but also for static site and asset generation. Let me show you how. The Request/Response-API is the modern way to write JavaScript servers . For example to return text/plain : const myHandler = async (req: Request) => { return new Response("Hello…